Changing Default Printer Via Sdk Follow

0
Avatar
Legacy Poster

I'm new to the SDK, I have only used it to auto print a label, but from what I have seen so far I like it.

 

The question I have is this, is it possible to change the default printer of a label format without going into the actual label and changing it there.  I want to be able to print the same label to different printers (if needed).

2 comments

0
Avatar
Domingo Rodriguez
Moderator
Comment actions Permalink

Hello,

 

You mean assigning the printer without manually opening the BT document in BarTender, correct?

 

You can e.g. assign the printer via the SDK when opening the BT document:

 

C#
public LabelFormatDocument Open(string fileName, string printerName)

 

Visual Basic
Public Function Open ( _fileName As String, _printerName As String _) As LabelFormatDocument

 

 

If the BarTender document is already open, you can use the PrintSetup.PrinterName Property instead.

0
Avatar
Legacy Poster
Comment actions Permalink

Thanks Domingo, that was exactly what I was looking for.

Please sign in to leave a comment.