X

An Oracle blog about BI Publisher

How to improve your image

Nope, it's not a new feature of publisher, sorry, we can't help with your persona but we can help with your template images.



Most of you know about the 'dummy' image approach to putting images/pictures into your templates. You insert a dummy image into the template and then in the properties dialog for the image navigate to the Web tab and use the following command:

url:{檀ttp://www.oracle.com/images/ora_logo.gif筑


This works great as long as the dummy image dimensions match or are of the same aspect. If not then you are going to get some interesting images at best. Not the best way to introduce your company to your clients with a whacky image on your invoices that looks only vaguely like your logo.  



You have another option, that is to add a field in the template that will call the image in directly. Its a piece of XSL rather than a friendlier publisher expression but when needs must. Its fairly straight forward but must be embedded inside a formfield.

<fo:external-graphic src="http://oracleimg.com/admin/images/ocom/hp/oralogo_small.gif"/>


There is a width and height attribute that you can set if you wish but leaving them out will result in the image being brought in as is.



This will pull the graphic in via a URI, in this case a URL. Remember if you're pulling via a URL then ensure you take care of any proxy settings required to get out of your intranet.



 

Join the discussion

Comments ( 7 )
  • hindy Monday, May 11, 2009
    I am new to BI Publisher and I was wonderng if you can help me...
    I need to show a report with a logo image that changes based on the user logged in to our site. I am usining oracle APEX and BI publisher to create the rtf file which I then load into oracle apex for printing to pdf. We have image locations stored in our database but the images are stored on the server and not in the database as BLOBs.
    Any way to show these images dynamically by getting the image name from the report query?
  • par Monday, November 9, 2009
    i have to produce documents where the image will change with the data selected. i can hard code the uri using both the image place holder and the methods. but i can't get either method to work when using the uri in my xml. do you have any suggestions? Thanks
  • Sarfraz R Ramay Monday, March 1, 2010
    Hi,
    I am using the URL to extract image.....i have an xml element named IMAGE_URL but when i add the following text
    url:{IMAGE_URL} to the alt-text box of the image field....nothing happens...its blank.....can someone please help......
    i have tested url:{'http://www.freepicsupload.com/pics/phpRvyqfv-Autumn%20Leaves.jpg'} and it is working fine....
  • MaorP Wednesday, March 10, 2010
    I have the same problem. When i hard code the image path into the image control Alt text tab, it's working fine.
    But when i'm trying to use element from the XML , the image comes out blank.
    can anyone assist with that?
  • Riley Angelilli Saturday, July 10, 2010
    excellent writing .
  • JABARI Thursday, September 2, 2010

    Iwant to add parameter nested of the url , can you help me ?? .
  • Ajay Patil Thursday, November 24, 2011

    I have the same problem. When i hard code the image path into the image control Alt text tab, it's working fine.

    But when i'm trying to use element from the XML , the image comes out blank. Does anyone know what i am missing can anyone help me out ! !


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.