
1044
DEVELOPING
COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
Las
t
upda
te
d 8/5/2010
2
Expand the Report Footer band, which is located directly below the Page Footer band.
3
Copy the pie chart from the Group Footer and paste it in the Report Footer.
4
Double-click the pie chart and click the Next button.
5
Double-click Total Sales to display the Edit Chart Series dialog box.
6
Change the Series Label to Total Sales for Artists.
7
Change the chart series values:
8
Click the Next button, and then Click the Title & Series tab.
9
Change the Chart Title to
Total Sales for Artists
, and click Finish.
10
Choose File > Save from the menu bar to save your changes to the report.
11
Press F12 to preview the report.
The Total Sales for Artists pie chart appears only on the last page of the report. Verify that the calculations are correct.
Using Cascading Style Sheets
The Report Creation Wizard automatically creates and applies the following styles to your report:
•
ReportTitle
•
CompanyName
•
PageTitle
•
ReportDate
•
SubTitle
•
DetailData (default style)
•
DetailLabel
•
PageFooter
•
RectangleStyle
•
LineStyle
The instructions on “
Adding and formatting fields
” on page 1040 show how to add a field called GroupFooter and
apply it to a text field and a data field in the GroupFooter band. You can export the styles in a report to a CSS file.
Report Builder automatically generates the CSS code for the styles. This technique is an efficient way to maintain a
single set of styles to use with multiple reports. You can modify the styles in the CSS file by using any text editor and
either import the CSS file in Report Builder or override the styles in the report at run time.
Initial Value:
0
0
Reset Field When:
Report (Changes)
Report (Changes)
Reset Group:
LASTNAME
LASTNAME
Label
Value
Sold
#calc.TotalSold#
Unsold
#calc.TotalUnsold#
Name
TotalSold
TotalUnsold