Notes:
This procedure is for HTML output only.
These steps, and the steps to link
an image object to a URL (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 a URL from the database that points to an image to include in an HTML report:
Create a query, with a SELECT statement that selects a column containing URLs.
In the Data Model view, double-click the column containing the URLs to display the Property Inspector.
Under the Column node:
Set the Read from File property to Yes.
Set the File Format property to Image URL.
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 a URL.
For example:
<rw:field id="F_MYIMAGEURL" src="MYIMAGEURL" nullValue=" " containsHtml="yes">
Selecting an image 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.