private void simButPrint_Click(object sender, EventArgs e)
{
btapp = new BarTender.Application();

btformat = btapp.Formats.Open(@"D:\tools\test1.btw", false, "");
btformat.PrintSetup.NumberSerializedLabels = 2; //設定列印份數
btformat.SetNamedSubStringValue("PO", this.texPO.Text.Trim()); //向bartender模板傳遞變數
btformat.SetNamedSubStringValue("Description", this.comDescription.Text.Trim());
btformat.PrintOut(true, false); //第二個引數設定是否跳出列印屬性;
btFormat.Close(BarTender.BtSaveOptions.btDoNotSaveChanges); //退出時是否保存標簽
btapp.Quit(BarTender.BtSaveOptions.btSaveChanges);//退出時同步退出bartender行程
}
uj5u.com熱心網友回復:
為什么用BT的,用易用列印軟體,更方便轉載請註明出處,本文鏈接:https://www.uj5u.com/net/244979.html
標籤:C#
下一篇:求MMI 人臉表情資料集
