VBA代码如下:
Private Sub CommandButton1_Click()
Dim file_path As String
Dim btApp As BarTender.Application
Dim btFormat As BarTender.Format
Dim inti As Long, arr, i%, dic As Object
file_path = ThisWorkbook.Path & "\1.btw"
Set btApp = New BarTender.Application
btApp.Visible = False
Set btFormat = btApp.Formats.Open(file_path)
btFormat.PrintOut
btFormat.Close btDoNotSaveChanges
btApp.Quit
Set btFormat = Nothing
Set btApp = Nothing
End Sub
SDK文件夹里有两个DLL 文件,已经复制到foxtable的安装目录了:
BarTenderPrintClient.dll
Seagull.BarTender.Print.dll
请问在Foxtable的全局代码中怎么定义API函数,实在是理解不了,还望大神指点???