云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > C# 使用 BarTender 条码标签打印处理的例子

C# 使用 BarTender 条码标签打印处理的例子

  • 62 次阅读
  • 3 次下载
  • 2026/1/10 6:52:53

C# 使用BarTender条码标签打印处理的例子

就是和那个GettingStartedwithActiveXAutomationUsingCsharp的白皮书里面说的一样

先引用一个BarTender的 Com. 然后就是

BarTender.ApplicationbtApp; BarTender.FormatbtFormat;

private void Form1_Load(object sender, EventArgs e) {

btApp = new BarTender.Application(); }

private void Form1_FormClosed(object sender, FormClosedEventArgs e) {

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges); }

private void button2_Click(object sender, EventArgs e) {

btFormat = btApp.Formats.Open(@\ // 同样标签的份数

// 也就是一个标签,打印多少份 // 系统默认是 1

// 当1个标签,需要打印多份的时候,修改这个参数 // 例如:需要打印某种无序号物品的标签 // 需要打印 20个物品的标签。

// 这20个标签的号码,都是一样的。 btFormat.PrintSetup.IdenticalCopiesOfLabel = 1;

// 序列标签数

// 当这个数字大于1的时候,会额外的打其他的标签。 // 例如下面的 ZB1000 12345678 // 当序列标签数 = 4 的时候。(好像系统默认是 4) // 会打印出

// ZB1000 12345678 // ZB1000 12345679 // ZB1000 12345680 // ZB1000 12345681 // 4张标签。

btFormat.PrintSetup.NumberSerializedLabels = 1;

btFormat.SetNamedSubStringValue(\测试 V1.0\

btFormat.SetNamedSubStringValue(\btFormat.PrintOut(false, false);

btFormat.SetNamedSubStringValue(\测试 V2.0\

btFormat.SetNamedSubStringValue(\btFormat.PrintOut(false, false); }

主要是在C# 程序中,需要正确的填写btFormat.PrintSetup.IdenticalCopiesOfLabel与btFormat.PrintSetup.NumberSerializedLabels的数值。

  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

C# 使用BarTender条码标签打印处理的例子 就是和那个GettingStartedwithActiveXAutomationUsingCsharp的白皮书里面说的一样 先引用一个BarTender的 Com. 然后就是 BarTender.ApplicationbtApp; BarTender.FormatbtFormat; private void Form1_Load(object sender, EventArgs e) { btApp = new BarTender.Application(); } private void Form1_FormClosed(object sender, FormClosedEventArgs e) { btApp.Qu

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com