Dynamic Image in XML Publisher

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 2

Displaying image dynamically in XML Publisher

Overview:
While working with XML Publisher reports it is very important to handle the images appearing in the
report layout. Since the client requirements for different modules of the report could differ while
reporting. It is essential to handle the logos and the images dynamically in the report according to the
reporting requirements. In other words, if the client wants to use same report with different logos in
various reporting entities then we need to handle the images in the layout template at the report
execution/run time.

Below two examples will demonstrate displaying image dynamically in XML publisher in Microsoft Office
2007 and onwards version.

e.g. 1)

Displaying Company logo image dynamically in XML Publisher (BI Tools) in RTF Template:
i) Insert any dummy placeholder image in RTF template (Insert Picture)
ii) Right click on image and click “Size” then goto “AltText” tab and enter dynamic path in
“Alternative Text” field e.g. url:{concat('${OA_MEDIA}','/XX_Logo.jpg')}.
$OA_MEDIA path TOP is actual path in Oracle App instance where images are stored.
DBA may help to get $OA_MEDIA Top path to upload XX_Logo.jpg file.

e.g. 2)

Displaying images (eg: a Signature) dynamically in XML Publisher (BI tolls) RTF template
i) Insert any dummy placeholder image in RTF template (Insert Picture)
ii) Right click on image and click “Size” then goto “AltText” tab and enter dynamic path in
“Alternative Text” field e.g. url:{concat('$
{OA_MEDIA}/XX_buyer_',/PO_DATA/DOCUMENT_BUYER_FIRST_NAME ,'_',/PO_DATA/D
OCUMENT_BUYER_LAST_NAME ,'.jpg')}
$OA_MEDIA path TOP is actual path in Oracle App instance where images are stored.
DBA may help to get $OA_MEDIA Top path to upload buyer’s signature file.

Below examples will demonstrate displaying image dynamically in XML publisher in Microsoft Office
2003 which obsolete in MS office 2007 and onward versions.

URL Reference to be added to the dummy image in the template:

1. Insert a dummy image in your template.


2. In Microsoft Word's Format Picture dialog box select the Web tab. Enter the
following syntax in the Alternative text region to reference the image URL:
url:{'http://image location'}
For example, enter:
url:{'http://www.oracle.com/images/ora_log.gif'}

= = = = = = = = = = = = = = = = = = = = = =O O O = = = = = = = = = = = = = = = = = = = = = = = =

You might also like