Spread for ASP.NET 11 Product Documentation
PageNumber Property
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > PrintBackgroundEventArgs Class : PageNumber Property
Gets or sets the current page being printed.
Syntax
'Declaration
 
Public Property PageNumber As Integer
'Usage
 
Dim instance As PrintBackgroundEventArgs
Dim value As Integer
 
instance.PageNumber = value
 
value = instance.PageNumber
public int PageNumber {get; set;}
Example
This example gets the PageNumber property.
protected void FpSpread1_PrintBackground(object sender, FarPoint.Web.Spread.PrintBackgroundEventArgs e)
        {
            ListBox1.Items.Add(e.PageNumber.ToString());
        }
Protected Sub FpSpread1_PrintBackground(sender As Object, e As FarPoint.Web.Spread.PrintBackgroundEventArgs) Handles FpSpread1.PrintBackground
      ListBox1.Items.Add(e.PageNumber.ToString())
End Sub
See Also

Reference

PrintBackgroundEventArgs Class
PrintBackgroundEventArgs Members