PrintForm.BeginPrint Event
Occurs when the Print method is called, before the first page of the document prints.
Namespace: Microsoft.VisualBasic.PowerPacks.Printing
Assembly: Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)
Syntax
声明
<BrowsableAttribute(False)> _
Public Event BeginPrint As PrintEventHandler
[BrowsableAttribute(false)]
public event PrintEventHandler BeginPrint
[BrowsableAttribute(false)]
public:
event PrintEventHandler^ BeginPrint {
void add (PrintEventHandler^ value);
void remove (PrintEventHandler^ value);
}
[<BrowsableAttribute(false)>]
member BeginPrint : IEvent<PrintEventHandler,
PrintEventArgs>
JScript does not support events.
Remarks
The BeginPrint event handler is typically used to perform any tasks that need to be accomplished before printing.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualBasic.PowerPacks.Printing Namespace
Other Resources
PrintForm Component (Visual Basic)
How to: Print a Form by Using the PrintForm Component (Visual Basic)
How to: Print the Client Area of a Form (Visual Basic)
How to: Print Client and Non-Client Areas of a Form (Visual Basic)
How to: Print a Scrollable Form (Visual Basic)
Deploying Applications That Reference the PrintForm Component (Visual Basic)