
1046
DEVELOPING
COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
Las
t
upda
te
d 8/5/2010
PageFooter
{
color:#2F2F2F;
font-size:8pt;
}
RectangleStyle
{
color:#E3EDEF;
background-color:#E3EDEF;
}
LineStyle
{
color:#CCCCCC;
background-color:#CCCCCC;
}
GroupFooter
{
color:Blue;
font-weight:bold;
font-family:Tahoma;
5
Change the ReportTitle style
color
attribute to
Red
and add the
font-weight
attribute, as the following code
shows:
ReportTitle
{
color:Red;
font-size:24pt;
font-weight: bold;
}
6
Save the CSS file.
Also, you can override report styles from ColdFusion. Form more information, see “
Overriding report styles
” on
page 1048.
Note:
If you add a style to the CSS file, add a style with the same name to the report in Report Builder. Also, Report Builder
does not support all CSS styles. For more information, see the cfreport tag in the CFML Reference.
Import the CSS file
1
Choose Window > Report Styles.
2
Click the import styles icon (the one with the blue arrow).
3
Navigate to the location of the artStyles.css file, and click OK. Report Builder automatically updates the report style
definition and applies the updated style to report title.
4
Press F12 to preview the report.
Overriding report settings at run time
You can use the
cfreport
tag in ColdFusion to override report settings in a Report Builder report at run time. The
examples use the CFR file that you created in “
Creating a simple report
” on page 1036.
Overriding the report query
This example filters the data in the report based on the login ID of the artist. When the artist logs on, the report displays
the data and pie chart for that artist. The report also includes the pie chart with data from all the artists.
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...