ActiveReports6 Assembly > DataDynamics.ActiveReports Namespace > TextBox Class : SummaryFunc Property |
'Declaration Public Property SummaryFunc As SummaryFunc
public SummaryFunc SummaryFunc {get; set;}
You can use this function to create subtotals, grand totals and other summary values. SummaryFunc has no effect unless the SummaryType property is set to either SubTotal or GrandTotal.
Note: When a summary function is used on a control, the CanGrow and CanShrink properties will have no effect since the summary is calculated after the control height has been determined and finalized.
private void detail_Format(object sender, System.EventArgs eArgs) { this.TextBox1.SummaryFunc = SummaryFunc.Sum; this.TextBox1.SummaryGroup = null; this.TextBox1.SummaryRunning = SummaryRunning.None; this.TextBox1.SummaryType = SummaryType.None; }
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format Me.TextBox1.SummaryFunc = SummaryFunc.Sum Me.TextBox1.SummaryGroup = Nothing Me.TextBox1.SummaryRunning = SummaryRunning.None Me.TextBox1.SummaryType = SummaryType.None 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