Creating Slide Presentations - Adobe 38043740 - ColdFusion Standard - Mac Development Manual

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
You can specify the time span in days, hours, minutes, and seconds. In this example, the temporary directory is deleted
after one hour. For more information, see the CFML Reference.
To export the report output to an HTML file, specify the
output to an HTML file called artSales.html:
<cfreport template="ArtSalesReport1.cfr" format="HTML" filename="artSales.html"
overwrite="yes"/>
ColdFusion creates an image directory relative to the HTML output file in the format filename_files. In this example,
ColdFusion automatically generates PNG files for the charts in the report and saves them to a directory called
artSales_files. Also, it generates copies of all of the JPG images extracted from the cfartgallery database and stores them
in the artSales_files directory. For more information, see the CFML Reference.
Overriding report styles
To override the report styles in a report, specify the
CSS syntax, the pathname to a CSS file, or a variable that points to valid CSS code. The CSS style names must match
the report style names defined in Report Builder.
The following code shows how to override the styles in the ArtSalesReport1.cfr report with the styles defined in the
artStyles.css file:
<cfreport template="ArtSalesReport1.cfr" style="artStyles.css" format="PDF"/>
The following code shows how to apply a CSS style as a value of the
<cfreport template="ArtSalesReport1.cfr" style='ReportTitle {defaultStyle: false;
font-family:"Tahoma"; color: "lime";}' format="FlashPaper">
</cfreport>
The following code shows how to create a variable called myStyle and use it as a value of the
<cfset mystyle='DetailData { defaultStyle: true; font-family: "Tahoma"; color: ##00FFF0;}'>
<cfreport template="ArtSalesReport1.cfr" style="#mystyle#" format="HTML">
</cfreport>
For more information, see the cfreport tag in the CFML Reference.

Creating Slide Presentations

You can use Adobe ColdFusion to create slide presentations.
About ColdFusion presentations
ColdFusion lets you create dynamic slide presentations from source files and from CFML and HTML code on a
ColdFusion page. You can use data extracted from a database to populate the slide content, including graphs and
charts. Also, you can add images, audio tracks, and video clips to each slide in the presentation. ColdFusion provides
three tags for creating slide presentations:
attribute. The following code writes the report
filename
attribute of the
style
style
Last updated 1/20/2012
tag. The value must contain valid
cfreport
attribute:
attribute:
style
1048

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents