Report building is an iterative process and most developers periodically display the in-progress report to review their most recent changes. If your report uses an internal query and you have established default webroot settings, preview functionality is enabled automatically. If your report uses a passed query, you must define an associated CFM page and associate that page with the report. The Report Builder invokes this page when you request Report Preview.
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.
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.
cfreport
tag whose template
attribute specifies the current CFR file and, if necessary, passes a query in the query
attribute.
The Preview Report window displays your report in PDF, FlashPaper, or Excel format.