
Use PrintJob class in conjunction with System.Windows.Printing.PrintDocument class. Initialize the Document property with a reference to the ImageGear document you need to print, and optionally, set other printing parameters. Implement PrintDocument event handlers by calling appropriate methods of the PrintJob class:
- In PrintDocument.BeginPrint handler, call BeginPrint.
- In PrintDocument.PrintPage handler, use RenderPage method to prepare the visual for printing. Use HasMorePages method to check whether the PrintJob has more pages to be printed.
- In PrintDocument.EndPrint handler, call EndPrint.
Use AnnotationPages property to print annotations over the document pages.
Use SelectedPageNumbers property to print specific pages.
Use PrintJob Constructor(PagePrintSettings) constructor to specify custom page printing settings, such as page layout, margins, header and footer fields for all pages of the document. If you need to customize the printing of specific pages, use RenderPage(Size,Thickness,PagePrintSettings) method to render pages.
See Printing Images section for more information.
System.Object
ImageGear.Printing.PrintJob