In order to insert a logo or image in the IBM Cognos Report on Red Hat Enterprise Linux (RHEL) platform, a customer needs to enable WebDAV on HTTPS server.
How to enable WebDAV on HTTPS Server?
01) Open 'httpd.conf' file present at path something like "/opt/IBM/IHS/HTTPServer/conf". Uncomment these 02 lines-
02) Go to Virtual Hosts section in 'httpd.conf' file.
Add these entries-
03) Save and re-start HTTPS server.
04) Give necessary permission to the webcontent, sample and images directory.
05) Open a report in IBM Cognos Report Studio.
Go to Toolbox and drag 'Image' to right side.
Now click on the Image and give web URL-
http://<server IP>:80/image/pic1.jpg
06) Save and run the report. The logo/images will be reflected in an existing IBM Cognos Report Studio Report.
What is WebDAV?
WebDAV stands for Web Distributed Authoring and Versioning (WebDAV) is an extension of the Hypertext Transfer Protocol (HTTP) that facilitates collaboration between users in editing and managing documents and files stored on World Wide Web servers.How to enable WebDAV on HTTPS Server?
01) Open 'httpd.conf' file present at path something like "/opt/IBM/IHS/HTTPServer/conf". Uncomment these 02 lines-
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dav_fs_module modules/mod_dav_fs.so
02) Go to Virtual Hosts section in 'httpd.conf' file.
Add these entries-
<VirtualHost *:80>
Alias /image "/opt/ibm/cognos/c10_64/webcontent/samples/images"
<Directory "/opt/ibm/cognos/c10_64/webcontent/samples/images">
Options Indexes FollowSymLinks
AllowOverride None
order allow,deny
allow from all
AuthType Basic
DAV On
</Directory>
Alias /image "/opt/ibm/cognos/c10_64/webcontent/samples/images"
<Directory "/opt/ibm/cognos/c10_64/webcontent/samples/images">
Options Indexes FollowSymLinks
AllowOverride None
order allow,deny
allow from all
AuthType Basic
DAV On
</Directory>
</VirtualHost>
03) Save and re-start HTTPS server.
04) Give necessary permission to the webcontent, sample and images directory.
05) Open a report in IBM Cognos Report Studio.
Go to Toolbox and drag 'Image' to right side.
Now click on the Image and give web URL-
http://<server IP>:80/image/pic1.jpg
06) Save and run the report. The logo/images will be reflected in an existing IBM Cognos Report Studio Report.
this work i used it
ReplyDeletewhen you drag a image prompt in the report section and double click on it ..it asked the url of image, here you give the whole url path of image(example:- http://ip of machine or machine name:http port number/image/image1.jpg)(and one thing i suggest use only .jpg or jpeg format images because the size of .jpg or .jpeg image has less size than .bmp extension image)and when you click on browse button you have to give server url i.e path of image directory (example:-http://ip of machine or machine name:http port number/image/)
ReplyDeletethanks..
Thanks for the detailed info on WebDAV. Helped me at right time. Cognos Online Training
ReplyDelete