COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: anilkumar on 03 Jan 2010 05:44:12 AM

Title: please help me out(its urgent)
Post by: anilkumar on 03 Jan 2010 05:44:12 AM
Hi

iam not able to see image in pdf.

i amnot able to find what is the reason

Thanks & Regards
Anil k .marri
Title: Re: please help me out(its urgent)
Post by: cognos8developer on 03 Jan 2010 09:34:36 PM
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,
Title: Re: please help me out(its urgent)
Post by: anilkumar on 04 Jan 2010 04:53:04 AM
yes

COGNOS VERSION 8.3

Regards
anil
Title: Re: please help me out(its urgent)
Post by: MFGF on 04 Jan 2010 08:32:49 AM
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.
Title: Re: please help me out(its urgent)
Post by: anilkumar on 04 Jan 2010 08:45:15 AM
HI MFGF


path is correct one , but iam not able to understand y  its not coming
Regards
Anil k .marri
Title: Re: please help me out(its urgent)
Post by: MFGF on 04 Jan 2010 08:56:05 AM
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.
Title: Re: please help me out(its urgent)
Post by: anilkumar on 05 Jan 2010 12:05:41 AM
HI MFGF

yeah i can see image in HTML , But problem in PDF only.


Regards
ANIL K .MARRI
Title: Re: please help me out(its urgent)
Post by: billylodz on 05 Jan 2010 02:10:55 AM
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
Title: Re: please help me out(its urgent)
Post by: MFGF on 05 Jan 2010 09:00:12 AM
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.
Title: Re: please help me out(its urgent)
Post by: anilkumar on 30 Jan 2010 05:32:09 AM
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

Title: Re: please help me out(its urgent)
Post by: MFGF on 01 Feb 2010 06:21:49 AM
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.
Title: Re: please help me out(its urgent)
Post by: anilkumar on 02 Feb 2010 06:25:33 AM
hi MFGF

still its not working,.


Thanks and Regards
ANIL K .MARRI
Title: Re: please help me out(its urgent)
Post by: `SBR` on 02 Feb 2010 02:21:12 PM
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.
Title: Re: please help me out(its urgent)
Post by: Naven on 04 Feb 2010 06:33:15 AM
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
Title: Re: please help me out(its urgent)
Post by: tmallsup on 05 Feb 2010 12:51:25 PM
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.
Title: Re: please help me out(its urgent)
Post by: tamilara on 05 Feb 2010 02:25:03 PM
It's 'cos access issue with the image folder on the server.

Grant Anonymous access in IIS

Tx