Specify Printer For The Print Bartender Template
Hi , i would like to specify a fix printer to print label from my application. My PC has 2 different printers connected, sometimes when i need to print other label using the another printer, i have to select manually from bartender.
I have tested below script in my app but no successful,
Dim btFmt
'*** open a format with specifying printer.
'set btFmt = btApp.Formats.Open("c:\ActiveXSample.btw",false,"Zebra GK420t-ZPL")
'*** change printer
'btFmt.Printer = "Zebra GK420t-ZPL"
Thanks.
-
Hey Serge,
Based on the app I did to print on 6 different printers, you would need to open your document with the printer you want to print to. So you would get code like this :
set btFmt = btApp.Formats.Open("c:\ActiveXSample.btw",false,"PRINTER 1")
or
set btFmt = btApp.Formats.Open("c:\ActiveXSample.btw",false,"PRINTER 2")
The btFmt.Printer is only used to get the current printer not set it.
Thanks,
0
請登入寫評論。
評論
1 條評論