Command Entry Format

To specify a printer command entry in a GPD file, use the following format:

*Command: CommandName {CommandAttributes}

 

where CommandName is one of the predefined command names, and CommandAttributes is a set of command attributes.

For example, a GPD file might contain the following specification of the CmdStartPage command, which initializes a page for printing.


*Command: CmdStartPage
{
    *Order: PAGE_SETUP.100
    *Cmd: "<0D>"
}

If, for a particular CommandName value, you only need to specify the *Cmd attribute, you can use a shortened version of the command entry format, as follows:

*Command: CommandName: CommandString

 

where CommandString is a text string representing a printer command escape sequence. For more information about specifying escape sequences, see Command String Format.

For example, a GPD file might contain the following specification of the CmdBoldOn command, which turns on bold text:


*Command: CmdBoldOn: "<1B>(s3B"

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft