Note: These steps, and the steps to link
an image object to a file (for paper-based reports only), allow you to include
images in a wide variety of formats supported by Oracle Reports, including JPEG
(all types, such as Progressive JPEG and Exif JPEG), PNG, BMP, TIFF, GIF, and
CGM. For paper-based reports, you can also use InsertImage
to import an image from a file into the report layout
for images in the following formats: TIFF, JFIF, BMP, TGA, PCX, PICT, GIF, CALS,
RAS, OIF, PCD.
To select an image from the database:
Create a query that selects a column containing images or the filenames of image objects.
In the Data Model view, double-click the image column to display the Property Inspector.
If the column contains the filenames of image objects, rather than the images themselves:
Under the Column node, set the Read from File property to Yes.
In both cases (a column containing images or a column containing the filenames of image objects): under the Column node, set the File Format property to Image.
If you are developing a JSP-based Web report, you will also need to add
the containsHtml
attribute to the <rw:field>
JSP tag for the column, as follows:
Display the Web Source view for the report.
Search for the rw:field
tag for the column (<rw:field
... src="column_name" ...>
)
Add the containsHtml=yes
attribute to specify that the
field's value contains an image.
For example:
<rw:field id="F_MYIMAGE" src="MYIMAGE" nullValue=" " containsHtml="yes">
Selecting an image URL from the database
Linking an image object to a file
Linking an image object to a URL
Importing an image (for images of format TIFF, JFIF, BMP, TGA, PCX, PICT, GIF, CALS, RAS, OIF, PCD)
Copyright © 1984, 2005, Oracle. All rights reserved.