COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: BZboy on 17 Nov 2016 09:57:20 AM

Title: Company logo/image not showing when we export report to PDF/Excel
Post by: BZboy on 17 Nov 2016 09:57:20 AM
Hello all. I recently added our company logo to a handful of our reports in Report Studio in TM1. When the report is ran, the results show the company image fine - which we added by using a image URL of our company image. When we export to PDF or excel, the image does not show.

Can someone help me with this, or point me in the right direction to get this fixed?

thanks in advance!

-B
Title: Re: Company logo/image not showing when we export report to PDF/Excel
Post by: ceosp on 17 Nov 2016 11:12:34 AM
Hi BZboy!

Take a look here: http://dicascognos.blogspot.com.br/2016/07/renderizacao-de-figuras.html
It's in Portuguese, but I hope it helps.

Best, Carlos
Title: Re: Company logo/image not showing when we export report to PDF/Excel
Post by: bdbits on 17 Nov 2016 11:59:59 PM
Where is the image located, and what restrictions are there if any on that location/URL?
Is it a full or relative URL?
Title: Re: Company logo/image not showing when we export report to PDF/Excel
Post by: Dhugu on 18 Nov 2016 10:09:15 AM
Hi,
Use a relative url and place the images on all your servers:  gateway, application and load balancer(s) 
Title: Re: Company logo/image not showing when we export report to PDF/Excel
Post by: dougp on 18 Nov 2016 01:07:19 PM
Cognos deals with images in HTML totally differently from images in PDF or Excel.  HTML uses a href that the user can access, but generating PDF or Excel is performed on the server, not by the user.  Using a relative URL won't work unless you copy the images to multiple folders on all of your servers.  Take a look at this tech note:  ]http://www-01.ibm.com/support/docview.wss?rs=0&uid=swg21340590[url] (http://www-01.ibm.com/support/docview.wss?rs=0&uid=swg21340590%5Burl)

What the tech note doesn't cover it, but I found using an absolute URL (http://servername/graphics/imagename.jpg) to be a much simpler solution.
Title: Re: Company logo/image not showing when we export report to PDF/Excel
Post by: BZboy on 28 Nov 2016 08:26:23 AM
Thank you all for the assistance. After reading the replies, I figured out what our issue is - we are currently using a Sharepoint image url on our Cognos reports. After understanding how the HTML & PDF reports differ relating to image url's I realize that this is our problem.

We no longer have a Cognos admin, so this is new to us.

What I need to figure out now, is how to create an image on the web server. Since we no longer have an admin, I have to figure out how to do this. After some digging, I found that on our old server, the image was located here:
http://cognostm1/ibmcognos/samples/images/companyimage.png

So I need to figure out how to have an image added to the above path on our web server

Thank all