Hi
iam not able to see image in pdf.
i amnot able to find what is the reason
Thanks & Regards
Anil k .marri
Hi,
What environment are you using?
Is it the issue where directory browsing is not enable so it renders in HTML but not PDF?
Cheers,
yes
COGNOS VERSION 8.3
Regards
anil
Hi.
I've seen this before. The deciding factor on whether this works or not seems to be whether you have used an absolute or a relative URL to the image when you added it to the report.
An absolute URL like the one below seems to work in HTML rendered pages but not PDF:
http://c8-server/cognos8/samples/images/Tick.jpg
A relative URL like the one below seems to work in both HTML and PDF rendered pages:
../samples/images/Tick.jpg
Try changing your image URL to a relative one, and hopefully that should fix the issue.
Regards,
MF.
HI MFGF
path is correct one , but iam not able to understand y its not coming
Regards
Anil k .marri
Hi,
It may well be the correct absolute URL, but with PDF it will not work. You need a relative URL as above.
Does the image appear using HTML rendering?
MF.
HI MFGF
yeah i can see image in HTML , But problem in PDF only.
Regards
ANIL K .MARRI
is the problem when you save the report view and looks fine when you run report as PDF ?
it's my understunding - not sure if correct
http://www.cognoise.com/community/index.php/topic,8021.msg26262.html#msg26262
OK. Let's check what you have at the moment:
1. What URL are you using to connect to Cognos 8 in your browser?
2. What is the name of the image file you are including in the report?
3. What URL to the image is currently defined in the image object in the report?
If you can provide these three pieces of information we can move forward from there.
Regards,
MF.
HI MFGF
1. What URL are you using to connect to Cognos 8 in your browser?
http://xxxxx/cognos8/cgi-bin/cognos.cgi
2. What is the name of the image file you are including in the report?
samba_logo.jpg
3. What URL to the image is currently defined in the image object in the report?
http://xxxxx/cognos8.3/samples/images/
Thanks & Regards
anil
OK. As I mentioned earlier, using an absolute URL like this will not work. You need to use a relative URL.
Change the URL of your image file in the report from
http://xxxxx/cognos8/samples/images/samba_logo.jpg
to
../samples/images/samba_logo.jpg
This should fix the problem.
Regards,
MF.
hi MFGF
still its not working,.
Thanks and Regards
ANIL K .MARRI
this may occur if you are using a distributed environment.. check whether the Images are available in the Gateway server under /cognos8/samples/xxx.jpg..
if you have 2 or more gateway server, put the image in all the gateway servers and try it.
Hi,
I went through a article which says, hope this works...
Problem
Images that appear in reports rendered as HTML are missing in reports rendered as PDF. The embedded GIF, JPG, and BMP images do not appear. Only the borders of the missing images appear.
Cause
The "HTTP Keep Alives" option is not enabled in IIS webserver
Solution
If you use Microsoft Internet Information Services (IIS), go to the properties sheet of the Web site and ensure that the Enable the "HTTP Keep Alives" option is selected.
Ensure that the virtual directory where the images are stored has anonymous access enabled. Open IIS and open the properties sheet for the virtual directory for your images. Select the Anonymous Access check box.
Regards,
Naveen
Also in a distributed application, we have had to copy the image files to all servers. Otherwise the PDF files will not open with the images. We have used the relative path as well.
It's 'cos access issue with the image folder on the server.
Grant Anonymous access in IIS
Tx