4.1.1 Beginning the Document

The PC_OCD_BEGINDOC box contains the printer command or commands which the Universal Printer Driver issues in order to begin printing a document. The commands sent at the beginning of a document should reset the cursor (or print head) to the upper-left corner of a page, clear the printer's buffers, initialize the printer configuration to a known state, and perform any necessary, related tasks. Some common begin-document commands are the printer reset, carriage return, buffer clear, top-of-form, character-set selection, and so on. It is sometimes necessary to set less-common (and less-obvious) commands for particular printers. For example, a raster printer may require unique dip-switch settings for foreign character sets and it may be necessary to insert additional begin-document commands to take these settings into account.

Diconix 150 Plus

For the Diconix 150 Plus, the Reset command (ESC@) returns the printer to the default conditions specified by the current dip-switch settings. The Cancel command (ESC M) deletes all data from the print buffer.

To specify the Reset and Cancel combination, type the following in the PC_OCD_BEGIN_DOC box:

\x1B@\x1BM

HP LaserJet IIP

For the HP LaserJet IIP, the Reset command (ESCE) returns the printer to its default settings and the Perforation Skip command (ESC &l0L) disables the printer's perforation skip feature.

To specify the Reset and Perforation Skip combination, type the following in the PC_OCD_BEGIN_DOC box:

\x1BE\x1B&l0L