User Guide

Table Of Contents
784 Chapter 32: Creating Reports for Printing
To place a query field, calculated field, or input parameter on a report band:
1.
In the Fields and Parameters tab, use the radio buttons to specify whether to place the label, the
field, or both.
2.
Drag the query field, calculated field, or input parameter from the Fields and Parameters tab to
the appropriate report band.
3.
Drag the query field, calculated field, or input parameter to the desired band.
4.
(Optional) Use the Properties sheet to customize the field display.
For example, you might have a query field named query.emp_salary and a calculated field that
sums query.emp_salary, resetting it with each group. Place query.emp_salary in the detail band,
and the associated calculated field in the group footer band.
Using toolbox elements on report bands
You can use the toolbox to add graphic and textual elements, such as images, circles, squares,
lines, dynamic fields, charts, and subreports, to report bands.
This section discusses text, images, circles, squares, lines, and dynamic fields. For information on
charts, see “Using charts” on page 800. For information on subreports, see “Using subreports
on page 800.
The basic technique for adding toolbox elements is to click in the toolbox element and then drag
to define an area in the appropriate report band. For some toolbox elements, such as image and
text box, a dialog box immediately appears, prompting for more information. For all toolbox
elements, you can customize the appearance of the element using the Properties sheet.
Tip: You can add toolbox elements through the Insert menu.
To use text boxes:
1.
Click the Label icon (abc) in the toolbox.
2.
Define the area for the label by dragging on the desired band.
The Edit Label Text dialog box appears.
3.
Enter the label text. To add a line break, press Control+Enter.
4.
Click OK, or press Enter.
Note: ColdFusion trims leading and trailing blanks from labels. To include leading and trailing
blanks, define a dynamic field and include the blanks in the expression; for example, " My Title ".
To use image files:
1.
Click the Image icon in the toolbox.
2.
Define the area for the image by dragging on the desired band.
The Image File Name dialog box appears.
3.
Navigate to the file containing the image, select the file, and click OK.