Header line
The header line is the first line in a Cognitive layout. Here is an example:
! 0 100 1050 1
Every Cognitive Header line used in Sales begins with an exclamation point (!), which tells the Cognitive that it is about to print in ASCII mode.
The 0 indicates to the Cognitive the starting position for printing. In this case and almost every other case, the starting position is 0.
The next parameter, 100, is always 100.
The next parameter, 1050, indicates how many printable rows exist on the ticket stock. In this case, the total number of rows in this Cognitive layout has to be less than or equal to 1050. If there are more than 1050 rows, the Cognitive skips to the next ticket to attempt to print that row. If the ticket stock is physically shorter than 1050 rows, the Cognitive may skip to the next label.
The next parameter, 1, indicates how many tickets are printed. In this case, only one ticket is printed. This entry could also contain an expression, for example:
<|TICKETQTY(tmp_qty)|>
which prints one or more tickets or vouchers depending on the quantity sold on a particular invoice line item (TICKETQTY () is a custom function written specifically for this purpose).