Home > Net >  C # call Btw print labels suggest InteropServices.COM Exception "3126 China automatically call
C # call Btw print labels suggest InteropServices.COM Exception "3126 China automatically call

Time:01-07

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;//set copies
Btformat. SetNamedSubStringValue (" PO ", this. The texPO. Text. The Trim ());//pass template variables to the bartender
Btformat. SetNamedSubStringValue (" Description ", this.com Description. Text. The Trim ());


Btformat. PrintOut (true, false);//the second parameter Settings are out of print properties;

BtFormat. Close (BarTender. BtSaveOptions. BtDoNotSaveChanges);//exits whether save the tag

Btapp. Quit (BarTender. BtSaveOptions. BtSaveChanges);//exits synchronous exit the bartender process
}

CodePudding user response:

Why use BT, use is easy to use printing software, more convenient

CodePudding user response:

Printing, the screen will show a dynamic icon (printers, paper a flying), the dynamic use animation icon, you can use the system to print, take a look at the show, very lovely,
  •  Tags:  
  • C#
  • Related