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

Occurs when Print is called, before the first page is printed.

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

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

Parameters

sender
The source of the event.
e
A PrintEventArgs that contains the event data.

See Also

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