ActiveReports 8
CurrentPage Property
See Also  Example
GrapeCity.ActiveReports.v8 Assembly > GrapeCity.ActiveReports Namespace > SectionReport Class : CurrentPage Property

Glossary Item Box

Returns the current page instance.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property CurrentPage As Page
C# 
public Page CurrentPage {get;}

Remarks

This property allows you to use primitive drawing methods or apply templates to report pages while the report is processing.

Example

C#Copy Code
private void rptTest_PageEnd(object sender, System.EventArgs eArgs)
{
    this.CurrentPage.DrawText("Confidential", 4F,10F,2F,0.188F);
}
Visual BasicCopy Code
Private Sub rptDocument_PageEnd(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.PageEnd
    Me.CurrentPage.DrawText("Confidential", 4.0F, 10.0F, 2.0F, 0.188F)
End Sub

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also