ActiveReports 8
SummaryType Property
See Also  Example
GrapeCity.ActiveReports.v8 Assembly > GrapeCity.ActiveReports.SectionReportModel Namespace > TextBox Class : SummaryType Property

Glossary Item Box

Gets or sets a value that determines the summary type to be performed.

Syntax

Visual Basic (Declaration) 
Public Property SummaryType As SummaryType
C# 
public SummaryType SummaryType {get; set;}

Property Value

A SummaryType enumeration value that determines the type of summary to be performed.  Default is SummaryType.None.

Remarks

ActiveReports can summarize the field as:

  • Subtotal (group level; reset for each group),
  • Grand total (report level; do not reset until all records are processed),
  • Page total (page level; reset for each page),
  • or a page count, which is the total number of pages printed.

If the summarized field is placed ahead of its summary level, (for example, placing a page total in the page header or a report grand total in the report header), the containing section and the following sections will not be printed until the summary value is resolved (calculated).  When using the summary functions with a field, the CanGrow and CanShrink properties are disabled for the field.

Example

C#Copy Code
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;
}
Visual BasicCopy Code
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

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

TextBox Class
TextBox Members
ActiveReports6~GrapeCity.ActiveReports.TextBox~SummaryFunc
ActiveReports6~GrapeCity.ActiveReports.TextBox~SummaryGroup
ActiveReports6~GrapeCity.ActiveReports.TextBox~SummaryRunning