Printing Commands

Required Edition

Automation, Enterprise Automation

/P

Executes a print job, leaving the status of the Use Database check box of the Print dialog unchanged. If this setting is checked, the various settings inside the Database Connection Setup dialog will be used as is, unless they are overruled by another command line parameter. Applies to all open BarTender documents unless the /AF= parameter has been used.

/PD

Same as /P, but also displays the Print dialog, thereby allowing the user to make changes as desired to the dialog settings and start the print job manually.

/QP

Forces the status of the Use Database check box of the Print dialog to disabled (or "unchecked"), so that no data is read in by BarTender from any external sources.

/QPD

Same as/QP, but also displays the Print dialog, thereby allowing the user to make changes as desired to the dialog settings and start the print job manually.

/FP

Forces the status of the Use Database check box of the Print dialog to enabled (or "checked"), so that data may be read from any properly specified data source file.

/FPD

Same as /FP, but also displays the Print dialog, thereby allowing the user to make changes as desired to the dialog settings and start the print job manually. (Often used with the Data Entry Form and Query Prompts.)

/C=n

Overwrites the currently specified value for the number of copies to print of each template.

/S=n

Overwrites the currently specified value for the number of serialized items to print.

/PRN=<printer name>

Specifies a printer to use. This parameter can be used at anytime and will apply to all open BarTender documents.

/PRNFILE=<printer file name>

Specifies that BarTender should print to a file and specifies the file name that should be used. The parameter applies to only the active BarTender document.

/PRNMDL="<model>[, <port>]"

Sets the printer model and, optionally, the port. This parameter is usually used as an alternative to /PRN when it is not certain that the desired printer will be on line. It will apply to all opened BarTender documents unless one of them has been specified as the active document using the /AF parameter. If used in addition to /PRN, the latter takes precedence. If the printer specified with /PRN cannot be found, BarTender will search for a printer of the specified model. If /PRNMDL=<model> is used and more than one printer of the correct model is found, BarTender will choose the one on the closest port to the missing printer. Specifying /PRNMDL=<model>, <port> will cause BarTender to use a printer of that model on the specified port.

/PrintJobName=<printer job name>

Sets the visible name for the print job in the spooler.

/Tray=<tray name>

Specifies the printer's paper tray to print from if multiple trays are available. The "tray name" string is compared to the list of tray names provided by the driver. Matching ignores whitespaces and is case-insensitive. If the specified tray is not available, this setting reverts to the default printer tray.

/MediaHandling= "option=value;[options=values]"

Sets media handling commands, triggers, and actions. For more information, see the Media Handling Tab section of the Page Setup Dialog help.

Option

Value

Action

DriverSettings

PageBreak

Pause

WaitForLabelTakenSensor

Cut

CutAndPause

Occurrence

AtEndOfPrintJob

AfterEveryPage

AfterEveryRecord

AfterAllIdenticalCopies

AfterDataChange

AfterNumberOfLabels

DataItemType

DatabaseField

NamedSubstring

NamedObject

DataItemName

(string value)

NumberLabels

(integer value)

IgnoreCase

True/False


BarTender Document CommandsDatabase Connection Commands License Server Commands Miscellaneous CommandsCommand Line Parameter Reference