See Also

ActiveReport Class  | ActiveReport Members

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

PageStart Event

Raised before the report renders any output to a new page.

[Visual Basic]
Public Event PageStart() As EventHandler
[C#]
public event EventHandler PageStart();

Remarks

This event is used to initialize any page-level variables when running an unbound report.

Example

[C#] 

bool bSwitch; 
private void rptDataDynamics_PageStart(object sender, System.EventArgs eArgs) 

    if (bSwitch == true) 
    { 
        this.PrintWidth = 6.5F; 
        this.Document.Printer.Landscape = false; 
    } 
}

[Visual Basic] 

' 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

See Also

ActiveReport Class  | ActiveReport Members

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.