Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 1045

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
3
In the Expression Builder, type the following code:
DollarFormat(calc.Sold)
Press F12 to preview the report. Report Builder displays the sum of the artwork sold for each artist.
4
Adding and formatting fields
You can add a text field to your report and define a style for it. When you define a style, you can reuse it throughout
your report or export the style so that you can use it in other reports. Also, you can override report styles at run time
by using the
and the
cfreport
page 1048.
Add a text field
1
In the Controls toolbox on the left side of the Report Builder window, click the text icon (the button with abc on it)
and place the text field to the left of the calculated field in the LASTNAME footer.
In the Edit Label dialog box, type Total Sales, and click OK.
2
Create a style
Choose Window > Report Styles from the main menu.
1
2
Click the (+) button.
In the Name field, enter GroupFooter.
3
Click the Color and Style tab and change the color to #9999CC.
4
5
Click the Font tab and change the Font to Tahoma and click the bold option. Then click OK. Report Builder adds
GroupFooter style to the pop-up menu of available styles in the report.
6
Choose File > Save from the menu bar to save your changes to the report.
Apply the style to text and data elements in the report
Select the Total Sales text box in the LASTNAME Footer band.
1
2
Choose Window > Properties Inspector.
Choose GroupFooter from the Style pop-up menu.
3
Select the calculated field element and apply the GroupFooter Style to it.
4
5
Press F12 to preview your report:
Adding images
When you add images with Report Builder, you can perform the following types of tasks:
• Replace the company name text box with a company logo in the report header.
• Use the Query Builder to add images from a database.
• Display the report in RTF format for faster display.
Add a logo to the report header
1
Select the Company Name text box located in the header band preceding Sales Report.
2
Choose Edit > Cut to remove the text box from the report.
Click the Add Image icon in the Controls toolbox. (The icon has a picture of a tree on it.)
3
tags. For more information, see
cfreportparam
Last updated 1/20/2012
"Overriding report
styles" on
1040

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents