pset

Sets printer code.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
    X    

Syntax

void pset(row,column,code-name | code)
int       row,column
ident     code-name
string    code

Description

Sets a printer escape sequence at the given row and column coordinate within the report page.
row specifies the row coordinate. If negative, uses G.LINENUMBER.

column specifies column coordinate. If negative, uses G.PAGEOFFSET.

code-name specifies the escape sequence by symbolic name. A hex string must be prefixed with 0x. The symbolic name must be in the printer control code file (default: trim.cc). The following example shows the format of the file:

BOLD_ON "0x1b47"

BOLD_OFF "0x1b48"

code specifies the escape sequence by code. The escape sequence can be a C string. A hex string must be prefixed with 0x.

Example

Turns on bold after page header and turn off bold before page footer in the paginate trigger.
{
.
.
pset(G.PAGEHEADERLINES,0,"0x1b47");
pset(G.PAGELENGTH-G.PAGEFOOTERLINES,0,BOLD_OFF);
}