ActiveReports6 Assembly > DataDynamics.ActiveReports Namespace > Section Class : BeforePrint Event |
'Declaration 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.
Note: If a section contains the SubReport control that occupies more than one page, the SubReport gets split into smaller parts at rendering. In this case, you can use the BeforePrint event to get the height of each part of the rendered SubReport.
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
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