GroupSortFields

GroupSortFields specifies the group field(s) that are to be used to sort your data when the report is printed.

Syntax
[form.]Report.GroupSortFields(ArrayIndex)
[= "+|-GroupField"]

Enter the group field(s) on which you want your report to be sorted.

For example, assume that you have broken your data into state groups and had Crystal Reports count the number of customers in each group. In order to print the group with the highest count first, then the group with the next highest count, etc. (descending order), enter a string similar to the following:

CrystalReport1.GroupSortFields(0) = "-Count
({customer.CUSTOMER ID},{customer.REGION})"
Remarks

Note:    

Data Type

Array of strings

Availability

Runtime

Related Report Engine Functions

PESetNthAlertConditionFormula



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com