医药CRM系统开发

自已做医药CRM系统有四年了,终于可以算个产品了,努力市场化,今年重种将医药营销的理念加入CRM

导航

PB中使用OLE的一般方法

Posted on 2007-01-15 21:24  hhq80  阅读(1474)  评论(0编辑  收藏  举报
1.增加ole对象,并得到ProgID字串
如:HKEY_CLASSES_ROOT\CLSID\{a41a4187-5a86-4e26-b40a-856f9035d9cb}\ProgID\MsTscAx.MsTscAx.2

2.代码引用
long ll_doc,i,ll_dc

 OLEObject MShtml

MShtml=create OLEObject
 ll_dc=MShtml.connectToNewObject("htmlfile_FullWindowEmbed")
if ll_dc<>0 then
messagebox("提示","对象建立失败!"+string(ll_dc))
end if

mshtml=ole_web.object.Document//将web对象的document给HTMLDocument类