Print

Prints a BarTender document to specified printer or to an image (printing to image requires Enterprise Automation Edition).

Parameters

Parameter

Description

Printer

Printer to print to, leave empty to use default printer

Print job name

Name of print job, can be omitted

Document password

If applicable, the password to use in order to print the document

Number of identical copies to print

If supported, specifies how many identical copies to print

Embedded data

Values to embedded data can be provided here

Text file database

If the document reads data from a text file, this section can be used to configure it

Database connection

If the document reads data from a database, this section can be used to configure it

Print to image preview

This section can be used to configure that the document should be printed to an image instead of a printer. Requires Enterprise Automation Edition of BarTender

Output

Record with information about whether operation failed or not.

Member

Description

Results

Contains a message from BarTender, typically information about the printing

HasFailed

Whether operation has failed or not

ErrorMessage

A description of the failure, if any

ErrorCode

An error code related to operation failure. Is 0 if no failure occured

Errors

Error code

Description

1000

Unspecified error.

1000001

Failed to print.

1000002

Failed due to timeout.

Last updated