Foxtable(狐表)用户栏目专家坐堂 → [求助]关于Seagull.BarTender.Print.dll调用的疑问


  共有2916人关注过本帖平板打印复制链接

主题:[求助]关于Seagull.BarTender.Print.dll调用的疑问

帅哥哟,离线,有人找我吗?
奶粉大王
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:幼狐 帖子:167 积分:1803 威望:0 精华:0 注册:2018/1/26 16:11:00
[求助]关于Seagull.BarTender.Print.dll调用的疑问  发帖心情 Post By:2021/6/16 10:40:00 [只看该作者]

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
---------------------------
确定   
---------------------------


看看是什么问题

 回到顶部