예제 #1
0
 //【2】在工具里面找打印printDocument1工具,在事件里 PrintPage表示(对于要打印的每一页发生一次)
 private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
 {
     //【2.1】创建USBPrint
     //【2.2】调用USBPrint里面的Print方法
     //【2.3】productList, txtSerialNum.Text.Trim(), toollblName.Text.Trim()都是要打印的内容
     USBPrint.Print(e, productList, txtSerialNum.Text.Trim(), toollblName.Text.Trim());
 }
예제 #2
0
 private void printDocument_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
 {
     USBPrint.Print(e, productList, txtSerialNum.Text.Trim(), toollblName.Text.Trim());
 }
예제 #3
0
 private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
 {
     USBPrint.Print(e, productList, txtSerialNum.Text.Trim(), toolStripStatusLabel5.Text.Trim());
 }