ActiveReports 9
BeforePrint Event
Example 

Occurs immediately before the section is rendered to the page.
Syntax
'Declaration
 
Public Event BeforePrint As System.EventHandler
public event System.EventHandler BeforePrint
Remarks

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.

Example
private void ghCustomerID_BeforePrint(object sender, System.EventArgs eArgs)
{
    this.rtf.ReplaceField("TotalOrders",this.txtTotalOrders.Text);
}
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
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~AfterPrint_EV
ActiveReports6~GrapeCity.ActiveReports.Section~Format_EV

 

 


Copyright © 2014 GrapeCity, inc. All rights reserved

Support Forum