FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > FpSpread クラス : PrintCancelled イベント |
'Declaration Public Event PrintCancelled As PrintCancelledEventHandler
'使用法 Dim instance As FpSpread Dim handler As PrintCancelledEventHandler AddHandler instance.PrintCancelled, handler
public event PrintCancelledEventHandler PrintCancelled
このイベントは、印刷ジョブが中止されたときにOnPrintCancelledメソッドによって生成されます。
個々のイベント引数の詳細については、PrintCancelledEventArgsメンバを参照してください。
private void button1_Click(object sender, System.EventArgs e) { FarPoint.Win.Spread.PrintInfo pi = new FarPoint.Win.Spread.PrintInfo(); pi.ShowPrintDialog =true; fpSpread1.Sheets[0].PrintInfo = pi; fpSpread1.PrintSheet(0); } private void fpSpread1_PrintCancelled(object sender, FarPoint.Win.Spread.PrintCancelledEventArgs e) { textBox1.Text="PrintCancelled"; }
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim pi As New FarPoint.Win.Spread.PrintInfo() pi.ShowPrintDialog = True FpSpread1.Sheets(0).PrintInfo = pi FpSpread1.PrintSheet(0) End Sub Private Sub FpSpread1_PrintCancelled(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.PrintCancelledEventArgs) Handles FpSpread1.PrintCancelled TextBox1.Text = "printcancelled" End Sub