TCnPrintDocument.OnQueryPageSettings Event

Occurs immediately before each OnPrintPage event.

Namespace: CNClrLib.Component.PrintDocument
 property OnQueryPageSettings: TQueryPageSettingsEventHandler read GetQueryPageSettings write SetQueryPageSettings;

It is possible to print each page of a document using different page settings. You set page settings by modifying individual properties of the QueryPageSettingsEventArgs.PageSettings property or by setting the property to a PageSettings. Changes made to the PageSettings affect only the current page, not the document's default page settings. The print job can also be canceled by setting the Cancel property to true for the QueryPageSettingsEventArgs.