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: 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.