Leadtools.WinForms Namespace > RasterImagePrinter Class : PrintDocument Property |
public PrintDocument PrintDocument {get; set;}
'Declaration Public Property PrintDocument As PrintDocument
'Usage Dim instance As RasterImagePrinter Dim value As PrintDocument instance.PrintDocument = value value = instance.PrintDocument
public PrintDocument PrintDocument {get; set;}
get_PrintDocument();
set_PrintDocument(value);
public: property PrintDocument^ PrintDocument { PrintDocument^ get(); void set ( PrintDocument^ value); }
You must set the PrintDocument property to the System.Drawing.Printing.PrintDocument object you are using for this print job. The RasterImagePrinter class requires this object to determine whether the printing operation is inside in preview mode (for example, using the print view dialog control) and calculates the real page margins accordingly.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2