Adobe COLDFUSION 9 Manual page 1013

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
• Page breaks
• Clickable hypertext links when viewed online
ColdFusion provides the following tags for generating printable output:
: Creates printable output and returns it to the browser or saves it in a file. For more information, see
cfdocument
"Creating PDF and FlashPaper output with the cfdocument
: Uses the specified report definition to create printable output and return it to the browser or save it in
cfreport
a file. ColdFusion supports report definitions from the following tools:
• ColdFusion Report Builder: The ColdFusion Report Builder is a banded report writer that is integrated with
ColdFusion. For more information, see
• Crystal Reports: Crystal Reports is a report writer whose report definitions you can use with the
For more information, see
ColdFusion printable reports are available in the following formats:
ColdFusion creates a SWF file. Clients must have an up-to-date version of Adobe Flash Player installed.
FlashPaper
ColdFusion creates a PDF file. Clients must have the Adobe Reader installed.
Adobe Acrobat
Microsoft Excel (ColdFusion reporting only)
Note: The Excel report output format type provides limited support for the formatting options available in ColdFusion
reporting. Images and charts are not supported and numeric data containing formatting (such as commas, percents,
currency) appears as plain text in Excel. The Excel output format supports simple reports only and it is recommended that
you give careful design and layout consideration to reports designed for Excel output.
Crystal Reports (Windows only)
available with the
cfreport
Creating PDF and FlashPaper output with the cfdocument tag
The
tag converts everything between its start and end tags into PDF or FlashPaper output format and
cfdocument
returns it to the browser or saves it to a file. As a result you can easily convert HTML to printable output, as the
following example shows:
<cfdocument format="FlashPaper">
<p>This is a document rendered by the cfdocument tag.</p>
</cfdocument>
The
tag supports all HTML and CFML tags, with the following exceptions:
cfdocument
cfchart
• Tags that generate content displayed in Flash Player.
• Interactive tags, such as
form
• JavaScript that dynamically modifies elements or element positions
Additionally, the HTML wrapped by the
proper nesting of block-level elements.
Note: ColdFusion does not return HTML and CFML outside the
"About Report
"Creating reports with Crystal Reports (Windows
ColdFusion creates an Excel spreadsheet.
ColdFusion passes control to Crystal Reports, which creates HTML. This option is
tag only.
,
, and
cfform
cfapplet
tag must be well-formed, with end tags for every start tag and
cfdocument
Last updated 8/5/2010
tag" on page 1008.
Builder" on page 1015.
only)" on page 1014.
<cfdocument></cfdocument>
1008
tag.
cfreport
pair.

Advertisement

Table of Contents
loading

Table of Contents