Info

Figure 3-41

Figure 3-41

When the subreport is processed, it is opened in a separate preview tab and can be viewed and printed independently. This is a great way to ensure efficient reporting; the details contained within a subreport are not returned until a user requests them.

To create an on-demand subreport, you can insert either a linked or unlinked subreport. Once the subreport has been inserted onto your report, you will need to set some options for on-demand reports. Locate the subreport you want processed on demand, right-click directly on top of it, select Format, and then select the Subreport tab, which will open the dialog shown in Figure 3-42.

There is only one setting required to process a subreport on demand, and that is the check box shown at the top of the dialog. With this option enabled, a subreport will not be processed until the user clicks it.

The user may need a little prompting to understand what is going on. For this purpose, you can select On-demand Subreport Caption by clicking the X+2 button. Using the Crystal Reports Formula Editor, enter a caption for your on-demand subreport and enclose it in quotation marks. This text is what the end user will see on the on-demand subreport link when previewing your main report. When you are finished, click the Save and Close button in the upper left corner to exit the formula editor (see Figure 3-43).

Figure 3-42

Was this article helpful?

0 0

Post a comment