ImageGear for Silverlight
PrintJob Class
Members  See Also  Send Feedback
ImageGear20.Core Assembly > ImageGear.Printing Namespace : PrintJob Class




Glossary Item Box

Prints ImageGear documents.

Object Model

PrintJob ClassImGearDocument Class

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Remarks

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.
Call the Print method of the PrintDocument object.

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.

Inheritance Hierarchy

System.Object
   ImageGear.Printing.PrintJob

See Also

©2012. Accusoft Corporation. All Rights Reserved.