MESCIUS SPREAD for Windows Forms 17.0J
SheetIndex プロパティ (PrintDocumentEventArgs)

印刷するシートのインデックスを取得します。
構文
'Declaration
 
Public ReadOnly Property SheetIndex As Integer
public int SheetIndex {get;}
次のサンプルコードは、印刷時にシートインデックスを一覧表示します。
private void button1_Click(object sender, EventArgs e)
        {
            fpSpread1.PrintSheet(-1);
        }

private void fpSpread1_PrintDocument(object sender, FarPoint.Win.Spread.PrintDocumentEventArgs e)
        {
            listBox1.Items.Add(e.SheetIndex.ToString());
        }
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    fpSpread1.PrintSheet(-1)
End Sub

Private Sub fpSpread1_PrintDocument(sender As Object, e As FarPoint.Win.Spread.PrintDocumentEventArgs) Handles fpSpread1.PrintDocument
    ListBox1.Items.Add(e.SheetIndex.ToString())
End Sub
参照

PrintDocumentEventArgs クラス
PrintDocumentEventArgs メンバ

 

 


© MESCIUS inc. All rights reserved.