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 PrintPage Event

[To be supplied.]

The following declaration shows the syntax for a method that handles the PrintPage event.

[Visual Basic]
Private Sub PrintDocumentName_PrintPage( _
   ByVal sender As Object, _
   ByVal e As PrintPageEventArgs _
)
[C#]
private void PrintDocumentName_PrintPage(
   object sender,
   PrintPageEventArgs e
);
[C++]
private: void PrintDocumentName_PrintPage(
   Object* sender,
   PrintPageEventArgs* e
);
[JScript]
private PrintDocumentName_PrintPage(
   sender : Object,
   e : PrintPageEventArgs
);

Parameters

sender
The source of the event.
e
A PrintPageEventArgs that contains the event data. The following PrintPageEventArgs properties provide information specific to this event.
Property Description
Cancel
Gets or sets a value indicating whether the print job should be canceled.
Graphics
Gets the Graphics used to paint the item.
HasMorePages
Gets or sets a value indicating whether there is an additional page to be printed.
MarginBounds
Gets the rectangular area that represents the page between the margins.
PageBounds
Gets the rectangular area that represents the total area of the page.
PageSettings
Specifieds the page settings for the current page.

See Also

PrintDocument Class | PrintDocument MembersTopic | System.Drawing.Printing Namespace | PrintDocument.OnBeginPrint | PrintDocument.BeginPrint | PrintDocument.OnEndPrint | PrintDocument.EndPrint | PrintDocument.OnPrintPage | PrintDocument.OnQueryPageSettings | PrintDocument.QueryPageSettings