ActiveReports 16 .NET Edition
GrapeCity.ActiveReports Assembly / GrapeCity.ActiveReports.SectionReportModel Namespace / Section Class / BeforePrint Event

In This Topic
    BeforePrint Event
    In This Topic
    Occurs immediately before the section is rendered to the page.
    Public Event BeforePrint As EventHandler
    public event EventHandler BeforePrint

    When this event occurs the section layout has been finalized and is ready to render.  Any changes that might affect the size of the section (such as changing the section Height property) will be ignored.

    private void ghCustomerID_BeforePrint(object sender, System.EventArgs eArgs)
    Private Sub ghCustomerID_BeforePrint(ByVal sender As Object, ByVal e As System.EventArgs) Handles _    ghCustomerID.BeforePrint
            Me.rtf.ReplaceField("TotalOrders", Me.txtTotalOrders.Text)
    End Sub
    See Also