1.修改Foxtable.exe.config 配置文件
在<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
下添加节点 <supportedRuntime version="v2.0.50727"/>
2.复制文件 Seagull.BarTender.Print.dll 到FOXTABLE程序安装根目录下
3.添加外部引用文件 Seagull.BarTender.Print.dll
添加命名空间 Seagull.BarTender.Print 设置别名 BarTender
4.后执行代码:
Dim btapp As BarTender.Application
Dim btformat As BarTender.Format
Dim btdb As BarTender.Database
btapp = CreateObject("bartender.application")
btapp.Visible = False
btformat = btapp.Formats.Open("I:\1.btw")
btdb = btformat.Databases(1)
btformat.PrintOut()
报错---------------------------
错误
---------------------------
编译错误:未定义类型“BarTender.Application”。
错误代码:Dim btapp As BarTender.Application
---------------------------
确定
---------------------------
看看是什么问题