NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

PrintDocument Class

Defines a reusable object that sends output to the printer.

Object
   Component
      PrintDocument

[Visual Basic]
Public Class PrintDocument
   Inherits Component
[C#]
public class PrintDocument : Component
[C++]
public __gc class PrintDocument : public Component
[JScript]
public class PrintDocument extends Component

Remarks

Typically, you will instantiate a template, set some properties describing what to print, then call the Print method. A PrintPage event will be raised for each page; in order to print anything interesting, you must handle this event.

Requirements

Namespace: System.Drawing.Printing

Assembly: System.Drawing.dll

See Also

PrintDocument Members | System.Drawing.Printing Namespace | PageSettings | PrintController | PrinterSettings