主题:  如何判断用户机上是否安装word?

amystar

职务:普通成员
等级:1
金币:1.0
发贴:248
注册:2001/8/8 15:41:31
#12002/2/27 18:39:46
同上



KNIFE

职务:普通成员
等级:1
金币:0.0
发贴:4
注册:2002/2/25 11:27:57
#22002/2/27 22:09:13
我也有个问题:
如何在DR打印文本,而且要使文本排列有序。
(我不想把文本变成图片)



我是小马

职务:普通成员
等级:3
金币:17.0
发贴:794
注册:2000/11/13 14:56:59
#32002/3/1 3:46:05
这两个问题都需要使用插件了

建议用buddyapi xtra

打印:
baPrintFile( the pathName & "test.txt" )

检测word是否安装:(看看这封我给wrj的email吧,应该可以解决你的问题了)
wrj,您好!
这要根据你所要查询的软件来定,我以acdsee和adobe公司的acrobat reader为例来说明:

读取注册表的函数,用buddy api 插件的baReadRegString( KeyName, valueName, Default, Branch )
  四个参数均为string类型,下面是它们的一些说明,这些你都可以在buddy api的帮助文件中查到!
KeyName is the name of the key.
valueName is the name of the value. Under 16 bit, this value is ignored.
Default is the string that is returned if the key/value doesn't exist.
Branch is the branch of the registry to use. Can be one of the following:
"HKEY_CLASSES_ROOT"
"HKEY_CURRENT_USER"
"HKEY_LOCAL_MACHINE"
"HKEY_USERS"
"HKEY_CURRENT_USER"
"HKEY_DYN_DATA"

比如我们要读取acdsee的安装路径,那么语句应该这么写:

baReadRegString( "software\microsoft\windows\currentversion\app paths\acdsee.exe", "path", "error", "HKEY_LOCAL_MACHINE" )

要读取acrobat reader的安装路径,可以这么写:
baReadRegString( "software\microsoft\windows\currentversion\app paths\AcroRd32.exe", "path", "error", "HKEY_LOCAL_MACHINE" )

也可以这么写:
baReadRegString( "software\adobe\acrobat reader\5.0\Installpath", "", "error", "HKEY_LOCAL_MACHINE" )


    

编辑历史:[这消息被mzgjingsi编辑过(编辑时间2002-03-01 12:48:46)]


amystar

职务:普通成员
等级:1
金币:1.0
发贴:248
注册:2001/8/8 15:41:31
#42002/3/1 12:22:53
mzgjingsi,谢谢你回答我的问题,
可是我没有这个buddyapi xtra这个插件。
另外,我还想问一下如果我已有一个判断word是否安装的dll,叫office.dll。
那如何运用呢?请指教。