LEADTOOLS Windows Forms (Leadtools.WinForms assembly)
LEAD Technologies, Inc

PrintDocument Property






Gets or sets the System.Drawing.Printing.PrintDocument object associated with this print job
Syntax
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);
}

Property Value

The System.Drawing.Printing.PrintDocument object associated with this print job.
Remarks

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.

Example
For an example, refer to RasterImagePrinter and ImageRectangle.
Requirements

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

See Also

Reference

RasterImagePrinter Class
RasterImagePrinter Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.