# Print

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

#### Parameters <a href="#parameters" id="parameters"></a>

| 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 <a href="#output" id="output"></a>

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 <a href="#errors" id="errors"></a>

| Error code | Description            |
| ---------- | ---------------------- |
| 1000       | Unspecified error.     |
| 1000001    | Failed to print.       |
| 1000002    | Failed due to timeout. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.novacuraflow.com/6.11/development/flow-studio/connectors/printing/bartender-2016/print.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
