Actions YAML Reference
Properties | List of all members
PrintBTWAction Class Reference

Prints a BarTender document. More...

Inherits PrintActionBase.

Properties

FileTarget DocumentFile [get, set]
 Specifies the file path of the BarTender document.
Currently, only Librarian and Windows file system paths are supported. More...
 
bool CloseDocumentAfterPrint [get, set]
 Specifies whether to close the document after printing. The default value is false. More...
 
bool SaveAfterPrint [get, set]
 Specifies whether to save the document after printing. The default value is true. More...
 
bool SkipGenerateThumbnail [get, set]
 Specifies whether to skip generating a thumbnail preview after printing. Valid only when the value of SaveAfterPrint is true. The default value is true. More...
 
string Printer [get, set]
 Specifies the printer to use for the document print job. The default value is "", which specifies that the setting in the document is used. More...
 
string PaperTray [get, set]
 Specifies the paper tray to use for the print job. The default value is "", which specifies that the setting in the document is used. More...
 
string Copies [get, set]
 Specifies the number of copies to print per serial number. The default value is "", which specifies that the setting in the document is used. More...
 
string SerialNumbers [get, set]
 Specifies the number of serialized labels to print. The default value is "", which specifies that the setting in the document is used. More...
 
string RecordRange [get, set]
 Specifies the range of records to print. The default value is "", which specifies that the setting in the document is used. More...
 
string JobName [get, set]
 Specifies the name of the print job. The default value is "". More...
 
bool PromptForDataInput [get, set]
 Specifies whether the user is prompted for data input. The default value is false. More...
 
bool AllowStaticGraphics [get, set]
 Specifies whether static graphics are allowed. This property depends on the capability of the printer. More...
 
bool AllowStaticObjects [get, set]
 Specifies whether static objects are allowed. This property depends on the capability of the printer. More...
 
bool AllowSerialization [get, set]
 Specifies whether serialization is allowed. This property depends on the capability of the printer. More...
 
bool AllowVariableDataOptimization [get, set]
 Specifies whether variable data optimization is allowed. More...
 
bool AllowGraphicsCaching [get, set]
 Specifies whether graphics caching is allowed. This property depends on the capability of the printer. More...
 
bool AllowFormatCaching [get, set]
 Specifies whether template caching is allowed. This property depends on the capability of the printer. The default value is false . More...
 
bool WarnWhenUsingTrueTypeFonts [get, set]
 Specifies whether a warning message is displayed when TrueType fonts are used. This property depends on the capability of the printer. More...
 
MediaHandling MediaHandling [get, set]
 Specifies the printer media handling method. This property depends on the capability of the printer.
For more examples, see MediaHandling.
Example: More...
 
List< RecordSetData > DatabaseOverrides [get, set]
 Lists database override settings.
Example in which the TextDB1 database is overridden by TextDB1 from a text file and the TextDB2 database is overridden by TextDB2 from an EventData variable: More...
 
bool VerifyPrintJobIsComplete [get, set]
 Verifies that the print job has been printed before continuing. When the value of QueueAndContinue is true, the value of VerifyPrintJobIsComplete must be false, and vice versa. The default value is false.
The various combinations of QueueAndContinue and VerifyPrintJobIsComplete have the following meanings: More...
 
int PrintJobTimeout [get, set]
 Specifies the amount of time, in milliseconds, that elapses while the print job is verified to be complete before the operation times out. Valid when VerifyPrintJobIsComplete is true. A value of -1 specifies that the operation waits until the print job is complete. The default value is 0. More...
 
SerializableBinaryStringDictionary NamedDataSources [get, set]
 Specifies a dictionary of named data sources to use to override the values in the document before printing.
Example: More...
 
bool SavePrintedNamedDataSource [get, set]
 Specifies whether named data source values are copied to variables at the end of the print job. The default value is false. More...
 
string NamedDataSourcePrefix [get, set]
 Specifies the prefix for the variables to which the named data source values are saved. Valid only when the value of SavePrintedNamedDataSource is true. The default value is "". More...
 
List< QueryPromptData > QueryPrompts [get, set]
 Specifies a list of query prompts for the print job.
Example: More...
 
string PrintResponseVariable [get, set]
 Specifies the name of the variable to save the print response to. The default value is "Response". More...
 
bool SelectFileAtPrintTime [get, set]
 Specifies that the PDF output file is selected at print time. Valid when the value of PromptForDataInput is true. Available only when the printer is 'PDF'. More...
 
string PrintToFileNameVariable [get, set]
 Specifies the variable to save the PDF printer output file name to. Available only when the printer is 'PDF' and the value of ReturnPrintData and ReturnPrintSummary are true. The default value is "PrintToFileName". More...
 
string PrintToFileFileName [get, set]
 Specifies the PDF output file name. Available only when the printer is 'PDF'. More...
 
FolderTarget PrintToFileFolder [get, set]
 Specifies the folder in which to save the PDF output files. Available only when the printer is 'PDF'. More...
 
bool MakeUniqueOutputFile [get, set]
 Specifies that the PDF output file name is made unique by adding a serial number. Available only when the printer is 'PDF'. More...
 
int MaximumRetriesOnFailure [get, set]
 Specifies the maximum number of times to try to resend a failed print job. Valid only when the value of ResendFailedJobs is true. The default value is 1. More...
 
bool ResendFailedJobs [get, set]
 Specifies whether to resend the print job if it fails. The default value is true.
 
bool ReturnPrintData [get, set]
 Specifies whether print data is included in the response. The default value is false. More...
 
bool ReturnPrintSummary [get, set]
 Specifies whether the print summary is included in the response. The default value is false. More...
 
bool ReturnLabelData [get, set]
 Specifies whether label data is included in the response. The default value is false. More...
 
bool ReturnChecksum [get, set]
 Specifies whether the checksum is included in the response. The default value is false. More...
 
bool QueueAndContinue [get, set]
 Specifies whether to queue the print request and continue immediately. The default value is false. More...
 
CommonActionProperties

Describes the common action properties for Actions and ActionGroups.

string Name [get, set]
 Specifies the name. This property cannot be empty and must be unique in the YAML script. More...
 
string Description [get, set]
 Specifies the description. The default value is "". More...
 
ActionRunType RunType [get, set]
 Runs the action by using one of the following types: More...
 
bool IgnoreErrors [get, set]
 Specifies whether to ignore errors and continue with the next action. Valid only for Action and ActionGroup. The default value is false. More...
 
int FailureRetries [get, set]
 Specifies the number of times that the action is retried if it fails. Available only for Action. The default value is 0. More...
 
int RetryInterval [get, set]
 Specifies the interval, in milliseconds, that elapses when a failed action is retried. Valid only when the value of FailureRetries is greater than 0. Available only for Action. The default value is 10000. More...
 

Detailed Description

Prints a BarTender document.

For common action properties, see IntegrationAction.
Example:

Actions:
- PrintBTWAction:
DocumentFile: D:\Temp\ttt.btw
Printer: Zebra 110Xi4(300 dpi)
Copies: 1
Action: PageBreak
Occurrence: AfterEveryRecord
- Name: TextDB
FileTarget: C:\Temp\ttt
- Name: TableDB
Type: VariableName
DataSourceVariableName: CurrentRecord
NamedDS1: 111
NamedDS2: 222
- Name: QueryPrompt1
Value: 111
- Name: QueryPrompt2
Value: 222
Name: Print BTW
# And more common action properties
...
bool ReturnLabelData
Specifies whether label data is included in the response. The default value is false.
Definition: PrintActionBase.Properties.cs:51
bool ReturnPrintData
Specifies whether print data is included in the response. The default value is false.
Definition: PrintActionBase.Properties.cs:35
bool ReturnPrintSummary
Specifies whether the print summary is included in the response. The default value is false.
Definition: PrintActionBase.Properties.cs:43
List< QueryPromptData > QueryPrompts
Specifies a list of query prompts for the print job. Example:
Definition: PrintBTWAction.Properties.cs:430
bool VerifyPrintJobIsComplete
Verifies that the print job has been printed before continuing. When the value of QueueAndContinue is...
Definition: PrintBTWAction.Properties.cs:376
string RecordRange
Specifies the range of records to print. The default value is "", which specifies that the setting in...
Definition: PrintBTWAction.Properties.cs:259
string Printer
Specifies the printer to use for the document print job. The default value is "", which specifies tha...
Definition: PrintBTWAction.Properties.cs:226
string Copies
Specifies the number of copies to print per serial number. The default value is "",...
Definition: PrintBTWAction.Properties.cs:243
MediaHandling MediaHandling
Specifies the printer media handling method. This property depends on the capability of the printer....
Definition: PrintBTWAction.Properties.cs:341
FileTarget DocumentFile
Specifies the file path of the BarTender document. Currently, only Librarian and Windows file system ...
Definition: PrintBTWAction.Properties.cs:183
SerializableBinaryStringDictionary NamedDataSources
Specifies a dictionary of named data sources to use to override the values in the document before pri...
Definition: PrintBTWAction.Properties.cs:397
int PrintJobTimeout
Specifies the amount of time, in milliseconds, that elapses while the print job is verified to be com...
Definition: PrintBTWAction.Properties.cs:385
List< RecordSetData > DatabaseOverrides
Lists database override settings. Example in which the TextDB1 database is overridden by TextDB1 fro...
Definition: PrintBTWAction.Properties.cs:364
string Name
Specifies the name. This property cannot be empty and must be unique in the YAML script.
Definition: IntegrationAction.Properties.cs:87

Property Documentation

◆ DocumentFile

FileTarget DocumentFile
getset

Specifies the file path of the BarTender document.
Currently, only Librarian and Windows file system paths are supported.

◆ CloseDocumentAfterPrint

bool CloseDocumentAfterPrint
getset

Specifies whether to close the document after printing. The default value is false.

◆ SaveAfterPrint

bool SaveAfterPrint
getset

Specifies whether to save the document after printing. The default value is true.

◆ SkipGenerateThumbnail

bool SkipGenerateThumbnail
getset

Specifies whether to skip generating a thumbnail preview after printing. Valid only when the value of SaveAfterPrint is true. The default value is true.

◆ Printer

string Printer
getset

Specifies the printer to use for the document print job. The default value is "", which specifies that the setting in the document is used.

◆ PaperTray

string PaperTray
getset

Specifies the paper tray to use for the print job. The default value is "", which specifies that the setting in the document is used.

◆ Copies

string Copies
getset

Specifies the number of copies to print per serial number. The default value is "", which specifies that the setting in the document is used.

◆ SerialNumbers

string SerialNumbers
getset

Specifies the number of serialized labels to print. The default value is "", which specifies that the setting in the document is used.

◆ RecordRange

string RecordRange
getset

Specifies the range of records to print. The default value is "", which specifies that the setting in the document is used.

◆ JobName

string JobName
getset

Specifies the name of the print job. The default value is "".

◆ PromptForDataInput

bool PromptForDataInput
getset

Specifies whether the user is prompted for data input. The default value is false.

◆ AllowStaticGraphics

bool AllowStaticGraphics
getset

Specifies whether static graphics are allowed. This property depends on the capability of the printer.

◆ AllowStaticObjects

bool AllowStaticObjects
getset

Specifies whether static objects are allowed. This property depends on the capability of the printer.

◆ AllowSerialization

bool AllowSerialization
getset

Specifies whether serialization is allowed. This property depends on the capability of the printer.

◆ AllowVariableDataOptimization

bool AllowVariableDataOptimization
getset

Specifies whether variable data optimization is allowed.

◆ AllowGraphicsCaching

bool AllowGraphicsCaching
getset

Specifies whether graphics caching is allowed. This property depends on the capability of the printer.

◆ AllowFormatCaching

bool AllowFormatCaching
getset

Specifies whether template caching is allowed. This property depends on the capability of the printer. The default value is false .

◆ WarnWhenUsingTrueTypeFonts

bool WarnWhenUsingTrueTypeFonts
getset

Specifies whether a warning message is displayed when TrueType fonts are used. This property depends on the capability of the printer.

◆ MediaHandling

Specifies the printer media handling method. This property depends on the capability of the printer.
For more examples, see MediaHandling.
Example:

Action: PageBreak
Occurrence: AfterEveryRecord

◆ DatabaseOverrides

List<RecordSetData> DatabaseOverrides
getset

Lists database override settings.
Example in which the TextDB1 database is overridden by TextDB1 from a text file and the TextDB2 database is overridden by TextDB2 from an EventData variable:

- Name: TextDB1
FileTarget: C:\Data\textdb1.txt
- Name: TextDB2
Type: VariableName
DataSourceVariableName: EventData

Example in which the first document database is overridden without specifying a name:

- Type: VariableName
DataSourceVariableName: EventData

◆ VerifyPrintJobIsComplete

bool VerifyPrintJobIsComplete
getset

Verifies that the print job has been printed before continuing. When the value of QueueAndContinue is true, the value of VerifyPrintJobIsComplete must be false, and vice versa. The default value is false.
The various combinations of QueueAndContinue and VerifyPrintJobIsComplete have the following meanings:

  • QueueAndContinue (true), VerifyPrintJobIsComplete (false): Queue the print job and continue immediately.
  • QueueAndContinue (false), VerifyPrintJobIsComplete (false): Verify that the print job has been processed before continuing.
  • QueueAndContinue (false), VerifyPrintJobIsComplete (true): Verify that the print job has been printed before continuing.

◆ PrintJobTimeout

int PrintJobTimeout
getset

Specifies the amount of time, in milliseconds, that elapses while the print job is verified to be complete before the operation times out. Valid when VerifyPrintJobIsComplete is true. A value of -1 specifies that the operation waits until the print job is complete. The default value is 0.

◆ NamedDataSources

SerializableBinaryStringDictionary NamedDataSources
getset

Specifies a dictionary of named data sources to use to override the values in the document before printing.
Example:

NamedDS1: 111
NamedDS2: 222

◆ SavePrintedNamedDataSource

bool SavePrintedNamedDataSource
getset

Specifies whether named data source values are copied to variables at the end of the print job. The default value is false.

◆ NamedDataSourcePrefix

string NamedDataSourcePrefix
getset

Specifies the prefix for the variables to which the named data source values are saved. Valid only when the value of SavePrintedNamedDataSource is true. The default value is "".

◆ QueryPrompts

List<QueryPromptData> QueryPrompts
getset

Specifies a list of query prompts for the print job.
Example:

- Name: QueryPrompt1
Value: 111
- Name: QueryPrompt2
Value: 222

◆ PrintResponseVariable

string PrintResponseVariable
getset

Specifies the name of the variable to save the print response to. The default value is "Response".

◆ SelectFileAtPrintTime

bool SelectFileAtPrintTime
getset

Specifies that the PDF output file is selected at print time. Valid when the value of PromptForDataInput is true. Available only when the printer is 'PDF'.

◆ PrintToFileNameVariable

string PrintToFileNameVariable
getset

Specifies the variable to save the PDF printer output file name to. Available only when the printer is 'PDF' and the value of ReturnPrintData and ReturnPrintSummary are true. The default value is "PrintToFileName".

◆ PrintToFileFileName

string PrintToFileFileName
getset

Specifies the PDF output file name. Available only when the printer is 'PDF'.

◆ PrintToFileFolder

FolderTarget PrintToFileFolder
getset

Specifies the folder in which to save the PDF output files. Available only when the printer is 'PDF'.

◆ MakeUniqueOutputFile

bool MakeUniqueOutputFile
getset

Specifies that the PDF output file name is made unique by adding a serial number. Available only when the printer is 'PDF'.

◆ MaximumRetriesOnFailure

int MaximumRetriesOnFailure
getset

Specifies the maximum number of times to try to resend a failed print job. Valid only when the value of ResendFailedJobs is true. The default value is 1.

◆ ReturnPrintData

bool ReturnPrintData
getsetinherited

Specifies whether print data is included in the response. The default value is false.

◆ ReturnPrintSummary

bool ReturnPrintSummary
getsetinherited

Specifies whether the print summary is included in the response. The default value is false.

◆ ReturnLabelData

bool ReturnLabelData
getsetinherited

Specifies whether label data is included in the response. The default value is false.

◆ ReturnChecksum

bool ReturnChecksum
getsetinherited

Specifies whether the checksum is included in the response. The default value is false.

◆ QueueAndContinue

bool QueueAndContinue
getsetinherited

Specifies whether to queue the print request and continue immediately. The default value is false.

◆ Name

string Name
getsetinherited

Specifies the name. This property cannot be empty and must be unique in the YAML script.

◆ Description

string Description
getsetinherited

Specifies the description. The default value is "".

◆ RunType

ActionRunType RunType
getsetinherited

Runs the action by using one of the following types:

  • Always (default)
  • Never

◆ IgnoreErrors

bool IgnoreErrors
getsetinherited

Specifies whether to ignore errors and continue with the next action. Valid only for Action and ActionGroup. The default value is false.

◆ FailureRetries

int FailureRetries
getsetinherited

Specifies the number of times that the action is retried if it fails. Available only for Action. The default value is 0.

◆ RetryInterval

int RetryInterval
getsetinherited

Specifies the interval, in milliseconds, that elapses when a failed action is retried. Valid only when the value of FailureRetries is greater than 0. Available only for Action. The default value is 10000.


The documentation for this class was generated from the following file: