COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Topic started by: angryman on 05 Dec 2005 09:53:13 PM

Title: Adding an Image to Report
Post by: angryman on 05 Dec 2005 09:53:13 PM
hi,
When adding an image to a report, why would you want to use a relative URL rather than a fully qualified URL???

Thanx in advance
Title: Re: Adding an Image to Report
Post by: JGirl on 05 Dec 2005 10:11:51 PM
An example of why you would want to do this is when you deploy reports from development to production.

Lets say you install your corporate logo image on your dev and prod machines, in the following location <install directory eg C:\Program Files\Cognos\crn>\webcontent\samples\images\corp_logo.gif

You need a URL in your reports to reference this image.  If you use ..\samples\images\corp_logo.gif, ReportNet will look for this image in the environment you are running the report from.  If you use http:\\developmentservername\crn\samples\images\corp_logo.gif and then move your report to a production environment, you still have a hardcoded reference to the development machine.

Just good practice really (and minimising rework)....

J