Adobe COLDFUSION 9 Manual page 1046

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

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
4
Drag the mouse in the header band preceding the Sales Report text box. When you release the mouse, the Image
File Name dialog box appears.
Navigate to the Art World logo file:
5
C:\ColdFusion9\wwwroot\cfdocs\getting_started\photos\somewhere.jpg
Click Open. Report Builder displays the Art World logo in the area that you selected.
6
With the image selected in the workspace, choose Windows > Properties Inspector. The Properties Inspector for
7
the image appears:
a
Under Colors and Style, change the Transparency to Transparent.
Under Formatting, change Scale Image to Retain Shape.
b
In the Header band, control-click the logo image and the Sales Report text box in the workspace to select them.
8
9
Click the Align Left Sides icon in the Controls toolbox.
10
Choose File > Save to save your changes.
Press F12 to preview the report.
11
12
Close the preview window and readjust the image size and location as needed.
Add images from a database
From the menu bar, choose Report > Report Query.
1
In the Art table, double-click LARGEIMAGE. The Query Builder adds the LARGEIMAGE column to the select
2
statement.
3
Click the Test Query button. A list of image filenames appears to the right of the ISSOLD column.
4
Close the Test Query window and click the Save button in the Query Builder.
In the Report window, expand the Detail band by clicking the lower splitter bar and dragging down.
5
6
Click the Add Image icon in the Controls toolbox and drag the mouse in Detail band of the report to the left of the
query.ARTNAME field. When you release the mouse, the Image File Name dialog box appears.
7
Navigate to the cfartgallery images directory:
C:\ColdFusion9\wwwroot\cfdocs\images\artgallery
In the File Name field, type #query.largeimage#.
8
Click the Open button. Report Builder adds the column to the Detail band of the report.
9
Align the image column with the top of the Detail band.
10
11
With the image element selected in the detail band, choose Window > Properties Inspector.
Change the following properties:
12
Transparency: Transparent.
a
b
Scale Image: Retain Shape. This option scales the images proportionately within the bounding box.
Error Control: No Image. This option ensures that Report Builder displays blank images rather than generates
c
an error for images missing from the database.
Using Cache: False. This option refreshes the display each time you preview the report output in the browser.
d
13
Choose File > Save to save your changes.
Last updated 8/5/2010
1041

Advertisement

Table of Contents
loading

Table of Contents