User Guide

Table Of Contents
788 Chapter 32: Creating Reports for Printing
5.
Select File > Preview from the menu bar.
or
Click the Preview button on the toolbar.
or
Press F12.
The Preview Report window displays your report.
Note: If the Report Builder displays the Edit Preview Report URL dialog box instead of displaying
the Preview window, select Edit > Preferences from the menu bar and ensure that the web root file
and URL settings are correct on the Server Connection pane.
6.
Close the preview window by pressing F12.
If your report is designed to accept a query object from a
cfreport tag, you must associate a URL
with the report. If necessary, the Report Builder prompts for this URL when you preview the
report. Otherwise, you can open the Report Properties dialog box, and specify the URL of the
CFM page in the Report Preview URL field.
Tip: You can use the cfreport tag to invoke a report, regardless of whether the report has an internal
query or is passed a query.
To use Report Builder preview with an associated CFM file:
1.
Select Report > Report Properties from the menu bar.
2.
Specify the URL of the associated CFM page in the Report Preview URL field. This CFM page
must contain a
cfreport tag whose template attribute specifies the current CFR file and, if
necessary, passes a query in the
query attribute.
3.
Save your report.
4.
Select File > Preview from the menu bar.
or
Click the Preview button on the toolbar.
or
Press F12.
The Preview Report window displays your report in PDF, FlashPaper, or Excel format.
Displaying page numbers
The Report Builder includes a built-in calculated field named
PAGE_NUMBER, which displays the
current page number when you place it on a report band.
To add a built-in calculated field to a report:
1.
Click the Field tool in the toolbox.
2.
Drag in the center of the header or footer band to define the size of the page number field.
The Add Field dialog box appears, listing all fields defined for the report, including built-in
calculated fields and input parameters.
3.
Select calc.PAGE_NUMBER, and click OK.
Tip: You can use the Field tool to add any type of field (query field, calculated field, input parameter)
to a report.