AddGroup Method (Report Object)CRE Object Model For the Automation Server
The AddGroup method adds a group to the report. ConditionField indicates the field for grouping, Condition indicates a change in a field value that generates a grouping, and SortDirection specifies the direction in which groups are sorted.
Syntax
object.AddGroup GroupN, ConditionField, Condition, SortDirection
Parameters
GroupN
| Specifies the number of the group to be added (the position of the group in relation to existing groups). For example, to add a group to the first position, set GroupN to 1
|
ConditionField
| Specifies the field to be grouped. The field can be a database field definition object or the field name.
|
Condition
| Specifies CRGroupCondition (see table below) indicating the grouping condition.
|
| Constant
| Value
|
| crGCAnually
| 7
|
| crGCAnyValue
| 14
|
| crGCBiweekly
| 2
|
| crGCDaily
| 0
|
| crGCEveryNo
| 11
|
| crGCEveryYes
| 10
|
| crGCMonthly
| 4
|
| crGCNextIsNo
| 13
|
| crGCNextIsYes
| 12
|
| crGCQuarterly
| 5
|
| crGCSEmiAnnually
| 6
|
| crGCSemimonthly
| 3
|
| crGCToNo
| 9
|
| crGCToYes
| 8
|
| crGCWeekly
| 1
|
SortDirection
| Specifies CRSortDirection (see table below) indicating the sort direction for the group (that is, ascending, descending).
|
| Constant
| Value
|
| crAscendingOrder
| 1
|
| crDescendingOrder
| 0
|
| crOriginalOrder
| 2
|