A cross-reference is a link whose target is located within the current document. This allows you to establish easy navigation through a report. In this example, we create a grouped report with a link at the bottom of each group, leading to the beginning of the report.
To create a report with a cross-reference, follow the steps below.
- Create a report with
grouping.
-
To add a Report Headerband to the report, right-click anywhere over the report's surface, and on the invoked Context Menu, point to Insert Bandand click ReportHeader.
-
Drop a label onto the created ReportHeaderband, which will serve as the report's headline. Click the label, to type the desired contents into it. Then, in the Property Grid, set its Nameproperty to reportTop.
-
Now, add a Group Footerband to the report.
-
Again, drop a label onto it. As it will be the link, change its text to Top of Report, and apply the common formatting to it (the blue color and underlined text) .
Finally, set its Navigation Targetproperty to _self. Now, if you click the drop-down list of the Navigation URLproperty, you can see the controls available in your report. Choose the one named reportTop.
The cross-reference is now ready. Switch to the Preview Tab, and view the result.
See Also