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. For information on subreports, see Using subreports.
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.
The Edit Label Text dialog box appears.
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 ".
The Image File Name dialog box appears.
The Image File Name dialog box appears.
Tip: You can also drag the BLOB field from the Fields and Parameters tab to a report band.
The Expression Builder appears.
Note: The BLOB column must contain a binary image in GIF, JPEG, or PNG format.
Note: These instructions assume that the contents of the BLOB column can be rendered as an image.
Tip: Pressing the Control key while resizing a rectangle, ellipsis, or line, constrains the element to a square, circle, or angles that are multiples of 45 degrees.
The Add Field dialog box appears (if you haven't defined any query fields, the Expression Builder appears).
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 might use the following expression:
LSNumberFormat((query.unitprice * query.quantity), ",_.__")