# Print from BTXML script

Sends a BTXML Script to BarTender.

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

| Parameter | Description                               |
| --------- | ----------------------------------------- |
| Filename  | Full path to file containing BTXML Script |

#### Output <a href="#output" id="output"></a>

Record with information about whether operation failed or not.

| Member       | Description                                                                                     |
| ------------ | ----------------------------------------------------------------------------------------------- |
| Results      | Contains a record with the xml response from BarTender and a table with messages from BarTender |
| 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                          |

Structure of Results Results

&#x20;XmlResponse

&#x20;Messages

* &#x20;Text
* &#x20;ID
* &#x20;Severity
* &#x20;Category

#### Errors <a href="#errors" id="errors"></a>

| Error code | Description        |
| ---------- | ------------------ |
| 1000       | Unspecified error. |
