Visual Basic (Declaration) | |
---|---|
Public Property PrintDocument As PrintDocument |
Visual Basic (Usage) | Copy Code |
---|---|
|
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.For an example, refer to RasterImagePrinter and ImageRectangle.
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.
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