Specify Printer For The Print Bartender Template Follow

0

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.

1 comments

0
Avatar
Legacy Poster
Comment actions Permalink

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,

Please sign in to leave a comment.