PdfViewer.QueryPageSettings Event
Occurs immediately before the PdfViewer.PrintPage event.
Namespace: DevExpress.XtraPdfViewer
Assembly: DevExpress.XtraPdfViewer.v19.2.dll
Declaration
Event Data
The QueryPageSettings event's data class is PdfQueryPageSettingsEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Cancel | Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs. |
PageNumber | Gets the page number in a document. |
PageSettings | Gets or sets the page settings for the page to be printed. Inherited from QueryPageSettingsEventArgs. |
PageSize | Gets the size of the current page. |
PrintAction | Returns PrintToFile in all cases. Inherited from PrintEventArgs. |
PrintInGrayscale | Gets or sets a value which indicates whether to print the document content in grayscale. |
Remarks
You can print each page of a document using different page settings. To access the page settings, use the corresponding property of the QueryPageSettingsEventArgs. For more information about other properties of QueryPageSettingsEventArgs, see the QueryPageSettingsEventArgs Class MSDN topic.
You can also obtain the page number and page size for each printed page using the PdfQueryPageSettingsEventArgs.PageNumber and PdfQueryPageSettingsEventArgs.PageSize properties, correspondingly.