找回密码
 加入
搜索
查看: 918|回复: 2

[AU3基础] C#BarTender二次开发示例转AV3

[复制链接]
发表于 2022-2-5 13:44:18 | 显示全部楼层 |阅读模式
BarTender核心代码:                btFormat = btAPP.Formats.Open(System.Windows.Forms.Application.StartupPath+@"\1.btw", false, "");
                btFormat.PrintSetup.IdenticalCopiesOfLabel = 1;//打印份数
                btFormat.PrintSetup.NumberSerializedLabels = 1;//序列标签数
                btFormat.SetNamedSubStringValue("打印文本", txtMemo.Text.Trim());
                btFormat.SetNamedSubStringValue("打印条码", txtBarcode.Text.Trim());
                btFormat.PrintOut(true, true);//第二个false设置打印时是否跳出打印属性
                btFormat.Close(BarTender.BtSaveOptions.btDoNotSaveChanges); //退出时是否保存标签


- - 。求一位大佬转一下AV3!!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2022-2-10 15:33:27 | 显示全部楼层
au3无法调用.net的dll 你可能需要这个库 中转下
https://www.autoitscript.com/for ... time-clr-framework/
 楼主| 发表于 2022-2-12 21:58:34 | 显示全部楼层
虫子樱桃 发表于 2022-2-10 15:33
au3无法调用.net的dll 你可能需要这个库 中转下
https://www.autoitscript.com/forum/topic/188158-net-co ...

谢谢虫老板
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-3 18:28 , Processed in 0.070075 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表