←Select platform

PrintDocument Property

Summary

Gets or sets the System.Drawing.Printing.PrintDocument object associated with this print job

Syntax

C#
VB
C++
public PrintDocument PrintDocument { get; set; } 
  
Public Overridable Property PrintDocument As PrintDocument 
public: 
virtual property PrintDocument^ PrintDocument { 
   PrintDocument^ get(); 
   void set (    PrintDocument^ ); 
} 

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

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.WinForms Assembly