OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Setting Print Parameters

To enable your document to paginate itself, the printer object (derived from class TPrinter) calls two of the printout object's member functions: first SetPrintParams, and then GetDialogInfo.

SetPrintParams initializes page size and device-context variables in the printout object. It can also calculate any information needed to produce an efficient printout of individual pages. For example, SetPrintParams can calculate how many lines of text in the selected font can fit within the print area (using Windows API GetTextMetrics). If you override SetPrintParams, be sure to call the inherited member function, which sets the printout object's page-size and device-context defaults.

See Also