共用方式為


PrintForm.EndPrint 事件

更新:2007 年 11 月

在文件最後一頁列印完後發生。

命名空間:  Microsoft.VisualBasic.PowerPacks.Printing
組件:  Microsoft.VisualBasic.PowerPacks.Vs (在 Microsoft.VisualBasic.PowerPacks.Vs.dll 中)

語法

<BrowsableAttribute(False)> _
Public Event EndPrint As PrintEventHandler

Dim instance As PrintForm
Dim handler As PrintEventHandler

AddHandler instance.EndPrint, handler
[BrowsableAttribute(false)]
public event PrintEventHandler EndPrint
[BrowsableAttribute(false)]
public:
 event PrintEventHandler^ EndPrint {
    void add (PrintEventHandler^ value);
    void remove (PrintEventHandler^ value);
}
JScript 不支援事件。

備註

EndPrint 事件處理常式通常會用來執行需要在列印之後完成的任何工作。例如,它可用來顯示對話方塊,通知使用者列印工作已完成。

使用權限

請參閱

參考

PrintForm 類別

PrintForm 成員

Microsoft.VisualBasic.PowerPacks.Printing 命名空間

其他資源

PrintForm 元件 (Visual Basic)

HOW TO:使用 PrintForm 元件列印表單 (Visual Basic)

HOW TO:列印表單的用戶端區域 (Visual Basic)

HOW TO:列印表單的工作區和非工作區 (Visual Basic)

HOW TO:列印可捲動的表單 (Visual Basic)

部署參考 PrintForm 元件的應用程式