Outputting a standard printer control sequence

psc()

Output a standard printer control sequence


SYNTAX

psc(seqno [, subno])

Output a standard printer control sequence. These are defined in Section 3 (standard control sequences) of the printer parameter file. If the sequence has been split into sub-sequences, the subno argument can be used to output a specific sub-sequence. If subno is zero or is omitted, all sub-sequences are output.

The include file <printer.h> contains mnemonic manifest constants which may be used to replace both the function call and its arguments. See the PSC_* standard sequences.

So, the commands:

print PSC_ENHANCED
print psc(15)

are identical.

Further sequences are available to select the following:

These sequences are listed in full under Standard control sequences. The hyperlinks go straight to the sequences available for each parameter type.

For further information about using the sequences, refer to the printer’s own technical manual.


NOTES

  • The initialisation sequence PSC_INITIALISE and the reset sequence PSC_RESET are sent automatically at the beginning and end of a report.

  • It is normally appropriate to terminate a print command which involves only calls to pset(), psc(), pstext() and puc() (functions which produce no actual printed output) with a semicolon, as otherwise a new line is thrown.


EXAMPLES

  1. Print a report title enhanced:

    print PSC_ENHANCED; tab(31); "LIST OF SUPPLIERS"; PSC_NORMAL
    
  2. Select orientation, paper tray and page size:

    print POR_LANDSCAPE; PPT_LOWER_CASSETTE; PPS_A4;
    

RELATED TOPICS

Reports

Report functions

pset()

puc()

pstext()