CFREPORT

Runs a predefined Crystal Reports report.

CFREPORT
Attribute

Description

REPORT

Required. Specifies the path of the report. Store your Crystal Reports files in the same directories that you store your Cold Fusion template files.

ORDERBY

Optional. Orders results according to your specifications.

USERNAME

Optional. The username required for entry into the database from which the report is created. Overrides the default settings for the data source in the Cold Fusion Administrator.

PASSWORD

Optional. The password that corresponds to a username required for database access. Overrides the default settings for the data source in the Cold Fusion Administrator.

Example

<CFREPORT REPORT="#GetDirectoryFromPath(CF_TEMPLATE_PATH)#EMPLOYEES.rpt">
   {Employees.Department} IN "#FORM.Departments#"
</CFREPORT>