Adobe COLDFUSION 9 Manual page 1029

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

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
4
(Optional) Select Manually Entered Expression.
The Expression Builder appears. This option is useful for calculations that use variables in the same row. For
example, to compute total price for an order detail line item, you could use the following expression:
LSNumberFormat((query.unitprice * query.quantity), ",_.__")
Click OK.
5
Aligning elements
Organized element layout is essential to a visually pleasing report. You achieve this organization by aligning, spacing,
and centering visual elements on each band relative to each other, to the band itself, and to elements on other bands.
The Report Builder Align Palette includes the following options:
• Align left, center, and right
• Align top, horizontal, and bottom
• Same heights, widths, and both
• Space equally horizontally
• Space equally vertically
You align, size, and space multiple report elements, as follows:
Relative to the band they are in: You control relative alignment through the Align to Band icon, which is the bottom
icon in the Align Palette. When it is enabled, the Align to Band icon has a rectangle surrounding it, and the Report
Builder aligns and spaces one or more elements relative to the height and width of the band.
Relative to each other: When Align to Band is disabled, Report Builder aligns and spaces two or more elements
relative to each other.
Use the Align Palette
Select two or more elements by pressing Control-click, Shift-click, or using lasso select.
1
Click the alignment icon, or select Modify > Alignment > alignment option from the menu bar.
2
The Align Palette options are also available from Modify > Alignment on the menu bar.
For complete information on fine-tuning element display, see the Report Builder online Help.
Using report styles
A report style is like a font style in Microsoft Word. Instead of explicitly associating an element with formatting
specifications, you associate the element with a style. doing so provides you with report-wide control of the formatting
characteristics of your report.
Additionally, you can specify style that is the default for the report. The ColdFusion Report Builder uses the default
style for all fields for which you have applied no other font specifications or styles. The default style, if defined, is
displayed in bold in the Report Styles panel.
Report Builder also lets you import styles from a Cascading Style Sheet (CSS) file and export styles defined in Report
Builder to a CSS file. This way you can enforce standard formatting across reports and override styles at run time from
a CFM page. For more information, see
"Using Cascading Style
Sheets" on page 1044 and the CFML Reference.
Last updated 8/5/2010
1024

Advertisement

Table of Contents
loading

Table of Contents