出现问题,则 Print 方法调用,因此,在打印文档的第一页之前。
命名空间: Microsoft.VisualBasic.PowerPacks.Printing
程序集: Microsoft.VisualBasic.PowerPacks.Vs(在 Microsoft.VisualBasic.PowerPacks.Vs.dll 中)
语法
声明
<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 不支持事件。
备注
BeginPrint 事件处理程序通常用于执行需要在打印前完成的所有任务。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.VisualBasic.PowerPacks.Printing 命名空间
其他资源
如何:使用 PrintForm 组件打印窗体 (Visual Basic)