Missing image in PDF reports but HTML reports show the same image
When running a report in HTML format, report shows the custom images being used in the report. However, PDF version of the same report does not show the same images.
Due to Single Sign On being used and applied to the images directory where the used images were stored, the permissions didn't exist for all users running the report to access the images.
Therefore, during the rendering phase in report generation, file system level authentication fails and hence disallowing the access to the images in the directory.
Resolving the problem
There are several possible ways to resolve this issue:
Allow anonymous access to the directory where the images are located
Allow anonymous access to the virtual folder referenced by the web server
Steps for IIS:
Browse to the image folder location or virtual folder in IIS, right-click and select Properties.
Click the 'Directory Security' tab.
Click 'Edit' under the Autehntication and acccess control section
Ensure the checkbox for 'Enable anonymous access' is checked and no other checkboxes are selected.
Click 'OK' and 'OK again to close the dialog boxes.
See your webserver documentation for all other vendors.
Modify the access control list at file system level (or file security/permissions in Windows) to provide the list of users who will be running the reports as well as user accounts that will be used to start the report server component of Cognos 8/10.
Ensure these users (or group(s) they belong to) are listed as having at least read access to these images.
SNAG-0006.png [ 43.82 KiB | Viewed 2147 times ]