<< Click to Display Table of Contents >>

 

Do the following to sort data in your report:

1.Create a new or open an existing data-bound report.

You cannot apply sorting unless your report is bound to a data source.

2.Switch to the Group and Sort panel, click Add a Sort and select the required data field in the invoked drop-down menu.

eurd-win-sort-data-select-field

Note

See the Sort Data by a Custom Field tutorial to learn how to sort a report's data by a custom field.

This adds a corresponding sort field to the Sort Fields collection. You can access this collection by clicking the Detail band's smart tag.

eurd-win-sort-fields-collection

3.Back in the Group and Sort panel, you can specify the sort order (ascending or descending).

eurd-win-sort-data-sort-order

4.When a report has multiple sort fields, you can change their order by clicking Move Up or Move Down.

eurd-win-sort-data-move-up-and-down

5.Drag the corresponding field from the Field List onto the report area and switch to Print Preview to see the result.

eurd-win-sort-data-result

You can allow sorting report data directly in Print Preview by clicking a designated element.

eurd-win-sort-data-in-print-preview

See Sort a Report in Print Preview for more information.