Used to do either of the following: - Execute a report definition created with the ColdFusion Report Builder, displaying it in PDF, FlashPaper, or Excel format. You can optionally save this report to a file. - Run a predefined Crystal Reports report. Applies only to Windows systems. Uses the CFCRYSTAL.exe file to generate reports. Sets parameters in the Crystal Reports engine according to its attribute values.
<cfreport>
cfreport();
This tag requires
Adobe ColdFusion 2 and up.
Not supported on Lucee, etc.
Specifies the path to the report definition file, relative to the web root.
format
string
Specifies the output format.
Values:
PDF
FlashPaper
Excel
RTF
HTML
XML
name
string
The name of the ColdFusion variable that will hold the report output. You cannot specify both name and filename.
filename
string
The filename to contain the report. You cannot specify both name and filename.
query
string
The name of the query that contains input data for the report. If you omit this parameter, the report definition obtains data from the internal SQL or from cfreportparam items.
overwrite
boolean
Default:false
Specifies whether to overwrite files that have the same name as that specified in the filename attribute. Default: false
Values:
true
false
encryption
string
Default:none
Specifies whether the output is encrypted. PDF format only. Default: none
Values:
128-bit
40-bit
none
ownerpassword
string
Specifies an owner password. PDF format only.
userpassword
string
Specifies a user password. PDF format only.
permissions
string
Specifies one or more permissions. PDF format only. Separate multiple permissions with a comma.