Using relative paths for images
We have seen some recipes in this book where we displayed images on the report (for example, the traffic signal one). This recipe will show a best practice related to that.
Getting ready
We will use the report created in the last recipe for this one.
How to do it...
In this recipe we will learn how to use relative paths for images in our report. To do this, perform the following steps:
Open the report in Cognos Report Studio. From the Insertable Objects/Source pane, drag Product image onto the list as a new column.
Run the report to test it.
It is possible that the images are not displayed.
In that case, log on to the server and make sure the Go Sales sample images are located in the
{installation folder}\webcontent\samples\images
folder. If not, put them there from the sample provided with this book.After putting the images in the correct folder, run the report and they should be displayed correctly.
Now go back to IBM Cognos Report Studio. Double-click on the Product...