PrintSetup Tag |
The PrintSetup command sets a BarTender document's print options. These options correspond to the options that are available on the Options mini-tab of the Print tab.
<PrintSetup>...</PrintSetup>
The following child element tags are supported.
Tag |
Required/Optional |
Description |
---|---|---|
Optional |
Sets whether the print job is printed again after the first printing is finished. |
|
Optional |
Sets whether to enable the data entry form for the print job. |
|
Optional |
Sets the number of copies of the document to be printed. |
|
Optional |
Sets the number of serialized numbers in the print job. |
|
Optional |
Sets the paper tray that the print job uses. |
|
Optional |
Sets performance options. |
|
Optional |
Sets the printer that is receiving the print job. |
|
Optional |
Sets whether the document is printed to a file. |
|
Optional |
Sets the print license that is used to print the document to a file. |
|
Optional |
Sets the file name that BarTender uses when it saves the print job. |
|
Optional |
Sets the range of records that the print job prints. |
|
Optional |
Sets the starting print position when there are multiple columns and/or rows on a document. |
|
Optional |
Sets whether the print job retrieves data from a database. |
<PrintSetup> is an optional tag that is used with the <FormatSetup>, <Print> and <ExportPrintPreviewToImage> commands.
This example demonstrates the <PrintSetup> tag that is contained within the <Print> command. The <PrintSetup> tag can also be contained within the <FormatSetup> and <ExportPrintPreviewToImage> commands.
<?xml version="1.0" encoding="utf-8"?>
<XMLScript Version="2.0" Name="09232006_103601_Job1" ID="123">
<Command Name="Job1">
<Print>
<Format>Document1.btw</Format>
<PrintSetup>
<NumberSerializedLabels>50</NumberSerializedLabels>
<IdenticalCopiesOfLabel>2</IdenticalCopiesOfLabel>
<Printer>HP LaserJet</Printer>
<AutoPrintAgain>true</AutoPrintAgain>
<EnablePrompting>true</EnablePrompting>
<RecordRange>1-5</RecordRange>
<UseDatabase>true</UseDatabase>
<PaperTray>Tray1</PaperTray>
<Performance>
<AllowFormatCaching>true</AllowFormatCaching>
<AllowGraphicsCaching>true</AllowGraphicsCaching>
<AllowSerialization>true</AllowSerialization>
<AllowStaticGraphics>true</AllowStaticGraphics>
<AllowStaticObjects>true</AllowStaticObjects>
<AllowVariableDataOptimization>false</AllowVariableDataOptimization>
<WarnWhenUsingTrueTypeFonts>true</WarnWhenUsingTrueTypeFonts>
</Performance>
</PrintSetup>
</Print>
</Command>
</XMLScript>
BTXML script version 1.0 (BarTender 8.0 and higher)