Spread for ASP.NET 7.0 Product Documentation
PageNumber Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > PrintBackgroundEventArgs Class : PageNumber Property


Glossary Item Box

Gets or sets the current page being printed.

Syntax

Visual Basic (Declaration) 
Public Property PageNumber As Integer
Visual Basic (Usage)Copy Code
Dim instance As PrintBackgroundEventArgs
Dim value As Integer
 
instance.PageNumber = value
 
value = instance.PageNumber
C# 
public int PageNumber {get; set;}

Example

This example gets the PageNumber property.
C#Copy Code
protected void FpSpread1_PrintBackground(object sender, FarPoint.Web.Spread.PrintBackgroundEventArgs e)
        {
            ListBox1.Items.Add(e.PageNumber.ToString());
        }
VB.NETCopy Code
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

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.