电子文档交易市场
安卓APP | ios版本
电子文档交易市场
安卓APP | ios版本

C#调用把BarTender模板

21页
  • 卖家[上传人]:jiups****uk12
  • 文档编号:88918267
  • 上传时间:2019-05-13
  • 文档格式:DOC
  • 文档大小:249.83KB
  • / 21 举报 版权申诉 马上下载
  • 文本预览
  • 下载提示
  • 常见问题
    • 1、1、应用“ Seagull.BarTender.Print “命名空间,2、代码如下:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;/using System.Threading.Tasks;using System.Windows.Forms;using Seagull.BarTender.Print;/using Seagull.BarTender;namespace BarTenderPrintTest1 public partial class Form1 : Form public Form1() InitializeComponent(); /Bar string dc = D:lipingBartenderPrintBarTenderPrintTest1BarTenderPrintTest1binDebugHW_CaiHe_

      2、and_packbox.btw; int ff = 163704004; string aa = 00057616-; int i = 1; private void btn_print_Click(object sender, EventArgs e) PrintLabel3(); #region 第一种写法 private void PrintLabel1() /创建一个BarTender打印引擎 ,并启用 Engine engine = new Engine(true); /创建一个模板对象 /LabelFormatDocument format = engine.Documents.Open(c:test.btw); LabelFormatDocument format = engine.Documents.Open(D:lipingBartenderPrintBarTenderPrintTest1BarTenderPrintTest1binDebugHW_CaiHe_and_packbox.btw); format.Print(print me label); /format

      3、.Print(Select printer, out messages); /format.Close(SaveOptions.SaveChanges ); format.Print(); engine.Dispose(); #endregion #region 打印第二种方法 private void PrintLable2() using (Engine engine = new Engine() /启用一个打印引擎 engine.Start(); /创建一个模板对象 LabelFormatDocument format = engine.Documents.Open(D:lipingBartenderPrintBarTenderPrintTest1BarTenderPrintTest1binDebugHW_CaiHe_and_packbox.btw); /打印 /format.Print(print me label); /改变标签打印数份连载 format.PrintSetup.NumberOfSerializedLabels =1; /设定印标签打印数量 format.Pri

      4、ntSetup.IdenticalCopiesOfLabel = 1; Result nResult = format.Print(); /指定打印机打印,不指定则使用默认打印机 format.PrintSetup.PrinterName = Bar Code Printer T-4503E; / Display the print result. /Console.WriteLine(Print status = + nResult); MessageBox.Show(打印提示:+nResult ); / Close the current format without saving. /SaveOptions 有三个值 DoNotSaveChanges:不保存 ,PromptSave:提示是否保存 SaveChanges:保存 format.Close(SaveOptions.DoNotSaveChanges); /结束打印引擎 engine.Stop(); #endregion #region 第三种打印方法改变标签的值 private void PrintLabel3() us

      5、ing (Engine engine = new Engine(true) LabelFormatDocument btFormat = engine.Documents.Open(dc); /MessageBox.Show(btFormat.SubStrings0.Name); /获取标签的值 /string AddressSubstring = btFormat.SubStringsHWbarcode1.Value; /MessageBox.Show(AddressSubstring); /修改标签的值 /btFormat.SubStringsAddress.Value = 1313 Mockingbird Lane, Anywhere, USA; /btFormat.SubStringsName.Value = John Doe; /btFormat.SubStringsQuantity.Value = 10; int dd = ff + i; i+; btFormat.SubStringsHWbarcode1.Value = aa+dd.ToString (); /改变标签打印

      6、数份连载 btFormat.PrintSetup.NumberOfSerializedLabels = 1; /设定印标签打印数量 btFormat.PrintSetup.IdenticalCopiesOfLabel = 1; Result nResult = btFormat.Print(); /指定打印机打印,不指定则使用默认打印机 btFormat.PrintSetup.PrinterName = Bar Code Printer T-4503E; MessageBox.Show(打印提示: + nResult); btFormat.Close(SaveOptions.DoNotSaveChanges); /结束打印引擎 engine.Stop(); #endregion 三、bartender 说明文档部分Creating a BarTender Print EngineThe Engine class represents a BarTender process and provides the backbone for programming with the BarTen

      7、der Print SDK. All programs written with the BarTender Print SDK will rely on the Engine class to provide BarTender print functionality. The BarTender Print EngineThe BarTender process (bartend.exe) provides standard BarTender functionality, such as opening label formats, changing label settings, and printing. The BarTender background process is controlled using an instance of the Engine class. The Role of the Engine ClassThe Engine class contains many methods, properties, and events to assist in pr

      《C#调用把BarTender模板》由会员jiups****uk12分享,可在线阅读,更多相关《C#调用把BarTender模板》请在金锄头文库上搜索。

      点击阅读更多内容
    最新标签
    发车时刻表 长途客运 入党志愿书填写模板精品 庆祝建党101周年多体裁诗歌朗诵素材汇编10篇唯一微庆祝 智能家居系统本科论文 心得感悟 雁楠中学 20230513224122 2022 公安主题党日 部编版四年级第三单元综合性学习课件 机关事务中心2022年全面依法治区工作总结及来年工作安排 入党积极分子自我推荐 世界水日ppt 关于构建更高水平的全民健身公共服务体系的意见 空气单元分析 哈里德课件 2022年乡村振兴驻村工作计划 空气教材分析 五年级下册科学教材分析 退役军人事务局季度工作总结 集装箱房合同 2021年财务报表 2022年继续教育公需课 2022年公需课 2022年日历每月一张 名词性从句在写作中的应用 局域网技术与局域网组建 施工网格 薪资体系 运维实施方案 硫酸安全技术 柔韧训练 既有居住建筑节能改造技术规程 建筑工地疫情防控 大型工程技术风险 磷酸二氢钾 2022年小学三年级语文下册教学总结例文 少儿美术-小花 2022年环保倡议书模板六篇 2022年监理辞职报告精选 2022年畅想未来记叙文精品 企业信息化建设与管理课程实验指导书范本 草房子读后感-第1篇 小数乘整数教学PPT课件人教版五年级数学上册 2022年教师个人工作计划范本-工作计划 国学小名士经典诵读电视大赛观后感诵读经典传承美德 医疗质量管理制度 2 2022年小学体育教师学期工作总结 2022年家长会心得体会集合15篇
     
    收藏店铺
    关于金锄头网 - 版权申诉 - 免责声明 - 诚邀英才 - 联系我们
    手机版 | 川公网安备 51140202000112号 | 经营许可证(蜀ICP备13022795号)
    ©2008-2016 by Sichuan Goldhoe Inc. All Rights Reserved.