Tuesday, November 30, 2010

How To Insert Images and Logo in the XML Publisher Reports and Documents

Problem: When we insert an image to rtf template, specially if you are using html format and processing the xml bursting using delivery API, you should reference the link in alternative text which MS word 2003 and 2007 has it in different place.

I was forced to blog this as in Word 2003 its under Format picture dialog box --> web tab, wherein case of Word 2007 its under size --> alternative text.

Resolution:

MS Word 2003 - rtf Template
* Insert a dummy image in the template.
* Right Click --> In the 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'}
e.g.: url:{'http://www.oracle.com/images/ora_log.gif'}


MS Word 2007 -- rtf Template


* Insert a dummy image in the template.
* Right click --> Size
* Enter the following syntax in the Alternative text region to reference the image URL:
* url:{'http://image location'}
e.g.: url:{'http://www.oracle.com/images/ora_log.gif'}

Reference for more options :
https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=550627.1