Spread for ASP.NET 8.0 Product Documentation
PageNumber Property
Example 


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
Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

PrintBackgroundEventArgs Class
PrintBackgroundEventArgs Members

 

 


Copyright © GrapeCity, inc. All rights reserved.