Print_SetHeader function
Note: \PAGE will print the current page number. This can be used in conjunction with any of the printer functions.
Description
Sets the page header print and font.
Syntax
status = Print_SetHeader(headertext, font)
Parameters
The Print_SetHeader function has the following parameters:
Parameter | Description | |
---|---|---|
headertext | Text for the heading. | |
Font | Structure of the font as returned by Utility ("CHOOSEFONT"). |
Returns
True for successful execution or False for failure.
Example
/* Sets the print header to number each page consecutively and put the date on each page. */ FontStruct = Utility("CHOOSEFONT", @Window) Print_SetHeader('This is the Header: P.\PAGE':@FM:"Date: 8/3/95", FontStruct) **Note: **In order for lines of text to wrap, each line must be delimited by an @FM.