Spread Windows Forms 10.0 Product Documentation
SheetIndex Property (PrintDocumentEventArgs)
Example 


Gets the sheet index when printing.
Syntax
'Declaration
 
Public ReadOnly Property SheetIndex As Integer
'Usage
 
Dim instance As PrintDocumentEventArgs
Dim value As Integer
 
value = instance.SheetIndex
public int SheetIndex {get;}
Example
This example lists the sheet index when printing.
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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

PrintDocumentEventArgs Class
PrintDocumentEventArgs Members

 

 


Copyright © GrapeCity, inc. All rights reserved.