COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: teelee on 23 Sep 2010 10:25:52 AM

Title: Inserting Images in Report
Post by: teelee on 23 Sep 2010 10:25:52 AM
Hello All,
I'm trying to insert images in a report. However, I'm getting an error (501 error)

or
example:
(10229 error)
http:\\IP Address\c:\Program Files\cognos\c8\webcontent\samples\content\images\inst_cr_winux_action_edit.gif/

Please assist me if you can, or tell me what I'm doing wrong.

Thanks for any assistance given!

teelee
Title: Re: Inserting Images in Report
Post by: technomorph on 23 Sep 2010 10:37:25 AM
Easiest thing to do is to use a relative path. Try the following instead. Note the forward slashes used for web content.

../samples/content/images/inst_cr_winux_action_edit.gif
Title: Re: Inserting Images in Report
Post by: teelee on 23 Sep 2010 02:12:46 PM
Thanks Technomorph,
Thanks so much for the information.  I've tried using the info, however, I still cannot insert the images.  Can you think of anything else that may be preventing me from performing this task?

Thanks in advance Always!

teelee  ???
Title: Re: Inserting Images in Report
Post by: technomorph on 24 Sep 2010 03:54:20 AM
First thing I would do is just double check with your Administrator that the image is where you expect it to be. The path of the image you're trying to use looks non-standard to me. We store our images in ..samples/images/[image].

If you have no joy with that you could try using the full path, but note you may then need to manually change the URL when moving the report between environments:

http://[server name]/cognos8/samples/content/images/inst_cr_winux_action_edit.gif

Note that it is important to use the fully qualified domain name for the URL i.e. server.domain.com because if the users' DNS suffix is different from that of the server, it may not work.

Title: Re: Inserting Images in Report
Post by: teelee on 27 Sep 2010 07:51:56 AM
Thanks Technomorph,
I will try everything that you suggested.  Thanks so much again for your assistance.

teelee :)