ImageGear for Silverlight
Using the PrintJob Class
See Also Send Feedback
ImageGear for Silverlight User Guide > Using ImageGear for Silverlight > Printing Images > Using the PrintJob Class

Glossary Item Box

The PrintJob Class provides API that allows applications to specify print settings and print ImageGear documents programmatically. This class should be used in conjunction with System.Windows.Printing.PrintDocument class.

In order to print a document, create an instance of System.Printing.PrintDocument class and an instance of PrintJob 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:

Call the Print method of the PrintDocument object to start the printing.

Use AnnotationPages property to print annotations over the document pages.

Use SelectedPageNumbers property to print specific pages of the document.

Use PrintJob(PagePrintSettings) constructor to specify custom page printing settings, such as page layout, margins, header and footer fields for all pages of the document.

In order to customize the printing of specific pages, e.g., apply different page layouts to document pages, use RenderPage(Size, Thickness, PagePrintSettings) method to render pages.

See Also

©2013. Accusoft Corporation. All Rights Reserved.