Spread for ASP.NET 9.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 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

PrintBackgroundEventArgs Class
PrintBackgroundEventArgs Members

 

 


Copyright © GrapeCity, inc. All rights reserved.