ActiveReports 8
AfterPrint Event
See Also  Example
GrapeCity.ActiveReports.v8 Assembly > GrapeCity.ActiveReports.SectionReportModel Namespace > Section Class : AfterPrint Event

Glossary Item Box

Occurs after the section has been rendered to the page.

Syntax

Visual Basic (Declaration) 
Public Event AfterPrint As System.EventHandler
C# 
public event System.EventHandler AfterPrint

Remarks

This event allows you to draw directly to the canvas after the section has been rendered.  It is not recommended to use this event to manage any data or variables because the sequence of the event relative to the other section events is not guaranteed.

Example

C#Copy Code
Private void reportHeader1_AfterPrint(object sender, System.EventArgs eArgs)
{
    this.CurrentPage.DrawRect(1,1,3,1);
}
Visual BasicCopy Code
Private Sub ReportHeader1_AfterPrint(ByVal sender As Object, ByVal e As System.EventArgs) Handles ReportHeader1.AfterPrint
    Me.CurrentPage.DrawRect(1, 1, 3, 1)
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

Section Class
Section Members
ActiveReports6~GrapeCity.ActiveReports.Section~BeforePrint_EV
ActiveReports6~GrapeCity.ActiveReports.Section~Format_EV