Printing Commands

/P

Runs a print job and leaves the status of the Use Database check box of the Print dialog unchanged. If this setting is selected, the various settings in the Database Setup dialog are 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, which the user can use to make changes 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 cleared, so that no data is read in by BarTender from any external sources.

/QPD

Same as /QP, but also displays the Print dialog, which the user can use to make changes 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 selected, so that data can be read from any correctly specified data file.

/FPD

Same as /FP, but also displays the Print dialog, which the user can use to make changes 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 of each template to print.

/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 any time and applies 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>]"

Specifies the printer model and, optionally, the port. This parameter is usually used as an alternative to /PRN when it is not certain that the printer that you want will be online. It applies to all open BarTender documents, unless one is specified as the active document by using the /AF parameter. If this parameter is used in addition to /PRN, /PRN takes precedence. If the printer that is specified by using /PRN cannot be found, BarTender searches for a printer of the specified model. If /PRNMDL=<model> is used and more than one printer of the correct model is found, BarTender chooses the one that is on the closest port to the missing printer. When you specify /PRNMDL=<model>, <port>, BarTender uses 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 that are provided by the driver. The matching process ignores whitespace 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, refer to the Media Handling Tab section of Page Setup Dialog. The following options are available.

Option

Available Values

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

Related Topics