Element Path: <cwt><TICKET>
The TICKET element is used to create ticket layouts that can be printed during a purchase and as collection tickets for different pay units.
External Pay Units can print transaction tickets.
The collection ticket cannot be printed in an S5 terminal with a closed door due to the size of the ticket outlet!
Printers can have additional setting for e.g. pre- and post-margins and page length to take into account.
For blackmark behaviour see the printer settings and parameters for your printer type.
|
attributes
height
Description: | Defines the height in pixels (8 pixels/mm) of the drawing area on the ticket where the information in the ticket layout will be rendered. |
layout
Value: | A valid ticket layout string |
orientation
Value: | Portrait, Landscape |
Description: | Defines in which orientation the rendering will take place on the ticket. |
ticketId
Description: | The identifier of the ticket layout. Used to connect tickets to tariffs and for collections. See tariff for details on how tickets are connected to tariff packages and section 3.10 for details on how to connect collection tickets to different pay units. |
width
Description: | Defines the width in pixels (8 pixels/mm) of the drawing area on the ticket where the information in the ticket layout will be rendered. |
| The Flowbird printer works differently with the width, height, and orientation attributes. See Using width, height, and orientation attributes for a detailed description. The width must be larger than the height for the orientation to remain the same as it is set. |
Example:
Setting the printer drawing area to 50 mm high (Y) and 100 mm wide (X)
<TICKET ticketId="19" height="400" width="800" orientation=" Landscape"
layout="Sample ticket"/>