Fired when the control finishes rendering each page.
Namespace:
C1.C1ReportAssembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
public event ReportEventHandler EndPage |
Visual Basic |
---|
Public Event EndPage 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 example shows, in a status bar, how many pages of the report have been printed so far:
Copy CodeVisual Basic
Private Sub c1r_EndPage(ByVal sender As System.Object, ByVal e As C1.C1Report.ReportEventArgs)Handles c1r.EndPage status.Text = "Rendering page " & e.Page & " of " & cmbReport.Text End Sub |
Copy CodeC#
private void c1r_EndPage(object sender, C1.C1Report.ReportEventArgs e) { status.Text = "Rendering page " + e.Page + " of " + cmbReport.Text; } |