Previewing reports

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.

To use Report Builder preview with a report that uses an internal query:

  1. (Optional) Define default server connection information using the Preferences dialog box, if you did not define these settings previously:
  2. (Optional) Specify the output format in the Report Properties dialog box (the default is FlashPaper).
  3. (Optional) If your report is designed to be invoked by a CFM page, specify the URL of the CFM page in the Report Properties dialog box.
  4. Save your report.
  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.


View comments in LiveDocs