バージョン

OnPrinting メソッド

Printing イベントを発生します。
シンタックス
'宣言
 
Protected Overridable Sub OnPrinting( _
   ByVal e As PrintingEventArgs _
) 
protected virtual void OnPrinting( 
   PrintingEventArgs e
)

パラメータ

e
イベントのデータを含む System.EventArgs
使用例
Imports Infragistics.Win
Imports Infragistics.Win.Printing
Imports Infragistics.Win.UltraWinGrid
Imports Infragistics.Win.UltraWinScrollBar
Imports Infragistics.Win.UltraWinToolbars


    Private Sub ultraPrintPreviewDialog1_Printing(ByVal sender As Object, ByVal e As Infragistics.Win.Printing.PrintingEventArgs) Handles ultraPrintPreviewDialog1.Printing

        ' cast the sender to a UltraPrintPreviewDialog
        Dim printPreviewDialog As UltraPrintPreviewDialog = CType(sender, UltraPrintPreviewDialog)

        ' specify whether a status dialog will be displayed
        ' during the print operation
        e.DisplayPrintStatus = True

        ' to cancel the print operation set Cancel to true
        ' e.Cancel = true

    End Sub
using Infragistics.Win;
using Infragistics.Win.Printing;
using Infragistics.Win.UltraWinGrid;
using Infragistics.Win.UltraWinScrollBar;
using Infragistics.Win.UltraWinToolbars;

		private void ultraPrintPreviewDialog1_Printing(object sender, Infragistics.Win.Printing.PrintingEventArgs e)
		{
			// cast the sender to a UltraPrintPreviewDialog
 			UltraPrintPreviewDialog printPreviewDialog = sender as UltraPrintPreviewDialog;

			// specify whether a status dialog will be displayed
			// during the print operation
			e.DisplayPrintStatus = true;

			// to cancel the print operation set Cancel to true
			// e.Cancel = true;
		}
参照