Fired when the control starts rendering each page.

Namespace:  C1.C1Report
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public event ReportEventHandler StartPage
Visual Basic
Public Event StartPage As ReportEventHandler

Remarks

This event is useful for updating the user interface to show how many pages have been printed so far.

You can use the Cancel property while handling this event to cancel rendering the report. To limit the number of pages that can be printed, use the MaxPages property instead.

Examples

The following code uses the StartPage event to provide feedback through a status bar (StatusStrip1):

Copy CodeVisual Basic
Private Sub c1r_StartPage(ByVal sender As System.Object, ByVal e As C1.C1Report.ReportEventArgs) Handles c1r.StartPage
    StatusStrip1.Text = String.Format("Rendering page {0} of '{1}'...", c1r.Page, c1r.ReportName)
End Sub
Copy CodeC#
private void c1r_StartPage(object sender, ReportEventArgs e)
{
    statusStrip1.Text = string.Format("Rendering page {0} of '{1}'...", c1r.Page, c1r.ReportName);
}

For details, see the Displaying a Progress Indicator While the Report Renders topic.

See Also