ActiveReports 9
PageStart Event
Example 

Raised before the report renders any output to a new page.
Syntax
'Declaration
 
Public Event PageStart As System.EventHandler
public event System.EventHandler PageStart
Remarks
This event is used to initialize any page-level variables when running an unbound report.
Example
bool bSwitch;
private void SectionReport1_PageStart(object sender, System.EventArgs eArgs)
{
    if (bSwitch == true)
    {
        this.PrintWidth = 6.5F;
        this.Document.Printer.Landscape = false;
    }
}
' boolean to keep track of which orientation to use
Dim bSwitch As Boolean

Private Sub rptMain_PageStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.PageStart
    If bSwitch = True Then
        Me.PrintWidth = 6.5
        Me.Document.Printer.Landscape = False
    End If
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

Reference

SectionReport Class
SectionReport Members

 

 


Copyright © 2014 GrapeCity, inc. All rights reserved

Support Forum