Leadtools.WinForms Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
PrintDocument Property
See Also 
Leadtools.WinForms Namespace > RasterImagePrinter Class : PrintDocument Property



Gets or sets the PrintDocument object associated with this print job

Syntax

Visual Basic (Declaration) 
Public Property PrintDocument As PrintDocument
Visual Basic (Usage)Copy Code
Dim instance As RasterImagePrinter
Dim value As PrintDocument
 
instance.PrintDocument = value
 
value = instance.PrintDocument
C# 
public PrintDocument PrintDocument {get; set;}
C++/CLI 
public:
property PrintDocument PrintDocument {
   PrintDocument get();
   void set (PrintDocument value);
}

Return Value

The PrintDocument object associated with this print job.

Example

For an example, refer to RasterImagePrinter and ImageRectangle.

Remarks

You must set the PrintDocument property to the 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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also