バージョン

Print(RowPropertyCategories) メソッド

グリッドデータの印刷レポートの作成を開始します。
シンタックス
'宣言
 
Public Overloads Sub Print( _
   ByVal retainRowPropertyCategories As RowPropertyCategories _
) 

パラメータ

retainRowPropertyCategories
行の設定カテゴリを指定して、グリッドに印刷される行に適用します。
解説

Print メソッドは印刷ジョブを開始します。このメソッドをトリガーするとグリッドのデータに基づく印刷されたレポートを準備してプリンタに送信するプロセスを開始します。このプロセスには複数のステップがあり、コントロール内で印刷固有のオブジェクトとイベントの間のやりとりがあります。

印刷ジョブが開始すると、InitializePrint イベントが発生します。このイベントは、印刷ジョブについての情報を含む PrintDocument オブジェクトを受け取ります。このオブジェクトのプロパティを検証および変更して、ユーザーへのフィードバックを提供し、印刷様式を制御します。

使用例
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

    Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click
        ' Pass in All to specify that all settings get carried over from grid rows
        ' to the print/print-preview rows. This is used to facilitate WYSIWYG printing.
        Me.UltraGrid1.PrintPreview(RowPropertyCategories.All)

        ' Call print to actually print.
        Me.UltraGrid1.Print(RowPropertyCategories.All)
    End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

		private void button1_Click(object sender, System.EventArgs e)
		{
			// Pass in All to specify that all settings get carried over from grid rows
			// to the print/print-preview rows. This is used to facilitate WYSIWYG printing.
			this.ultraGrid1.PrintPreview( RowPropertyCategories.All );
			
			// Call print to actually print.
			this.ultraGrid1.Print( RowPropertyCategories.All );
		}
参照