W
wglifs
Unregistered / Unconfirmed
GUEST, unregistred user!
使用一个ActiveX,是用Import Type Library功能吗?在单元中怎样引用?VB的代码如下,怎样改成Delphi的代码?
Public BtApp As BarTender.Application
Public BtFormat As BarTender.Format
Sub PrnLbl()
Set BtApp = CreateObject("BarTender.Application" 'Call BarTender
Set BtFormat = BtApp.Formats.Open(gPrnFName) 'Call label format file
BtFormat.SetNamedSubStringValue "TCustNo", gCustNo
BtFormat.PrintOut
BtFormat.Close (BarTender.BtSaveOptions.btDoNotSaveChanges) 'Close label format
BtApp.Quit 'Exit BarTender
End Sub
Public BtApp As BarTender.Application
Public BtFormat As BarTender.Format
Sub PrnLbl()
Set BtApp = CreateObject("BarTender.Application" 'Call BarTender
Set BtFormat = BtApp.Formats.Open(gPrnFName) 'Call label format file
BtFormat.SetNamedSubStringValue "TCustNo", gCustNo
BtFormat.PrintOut
BtFormat.Close (BarTender.BtSaveOptions.btDoNotSaveChanges) 'Close label format
BtApp.Quit 'Exit BarTender
End Sub