Cognos Analytics

 View Only
  • 1.  No images in pdf output

    Posted Mon December 17, 2018 05:11 PM

    I've installed the Image Gallery extension (SampleExtensionCustomMediaAll.zip), all works fine in html output, however images are not displayed when report output in pdf or excel..?

    Have anyone experienced the same?
    Any ideas why?




    ------------------------------
    Richard Mabjish
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: No images in pdf output

    Posted Tue December 18, 2018 04:46 PM
    @SAMI EL CHEIKH

    Sami,

    I tried the extension for image gallery (see post above), images do not display in pdf or excel.

    Any idea why? ​​

    ------------------------------
    Richard Mabjish
    ------------------------------



  • 3.  RE: No images in pdf output

    Posted Wed December 19, 2018 11:20 AM
    @Richard Mabjish ​ Thanks for reaching back out! 

    We need to investigate this further with you based on your environment. Can you please log a support ticket for us to look into?
    https://ibm.com/mysupport

    Thanks,

    ------------------------------
    Sami El Cheikh
    Offering Manager
    IBM Cognos Analytics
    ------------------------------



  • 4.  RE: No images in pdf output

    Posted Thu June 13, 2024 06:10 AM

    Hello Richard,

    Did you manage to resolve this issue?

    BR,



    ------------------------------
    Atanas Iliev
    ------------------------------



  • 5.  RE: No images in pdf output

    Posted Fri June 14, 2024 05:30 AM

    Hello @Richard Mabjish and @SAMI EL CHEIKH can you please share if you were able to find a solution?

    BR,



    ------------------------------
    Atanas Iliev
    ------------------------------



  • 6.  RE: No images in pdf output

    Posted Fri June 14, 2024 08:56 AM

    Hi @Atanas Iliev,

    We were not able to resolve this issue, the idea was dropped and no longer required.




  • 7.  RE: No images in pdf output

    Posted 27 days ago
    Edited by Samy Elshamy 24 days ago

    Hi everyone,

    we just stumbled across the same issue (Cognos Analytics 12.0.4 running on Linux). It seems like the report service is using (depending on your installation path) "/opt/ibm/cognos/analytics/webcontent/bi/v1" as base directory to retrieve the images. Once you select an image from the extension, you can see the relative path where the image is looked up if trying to access it through the webinterface:

    This works without a problem through the webinterface. 

    The extensions are usually found under "/opt/ibm/cognos/analytics/temp/extensions/global" where you do not end up if you follow the relative path from the mentioned base directory "/opt/ibm/cognos/analytics/webcontent/bi/v1".

    If you create the directory "/opt/ibm/cognos/analytics/webcontent/bi/v1" and inside a symlink pointing to where all the extensions are, it works. You can create the symlink as follows:

    ln -s /opt/ibm/cognos/analytics/temp/extensions/global/ /opt/ibm/cognos/analytics/webcontent/bi/v1/ext

    Hope this helps.

    Best

    Samy



    ------------------------------
    Samy Elshamy
    ------------------------------



  • 8.  RE: No images in pdf output

    Posted 21 days ago

    Are you running on a three tier environment where Web-Server and App-Server are separate machines?

    If so, then the PDF rendering software will run on application server oand try to embed the images. While doing so, it needs access to the files. The strategy for looking for them is:

    • local filesystem
    • gateway URL

    If neither is available, it will show a box with a black frame.

    To make it available, you need to put the images on the app-server disk into the path that is referenced in HTML, e.g. /opt/ibm/cognos/analytics/webcontent/bi/v1 (as mentioned by Samy).

    or make it available via Gateway. Check the Gateway URI configured on App.-Server using "linux curl" or similar to verify that the image is accessible from app.-server. The URL should be similar to the one in HTML, but with FQDN configure on App.-Server. I have seen installation where app.-server was defaulting any http request to a security proxy which then could not access the GW URI. I have seen installation where the access to the GW resource required authentication (which "obviously" is impossible for software running PDF rendering). Regarding GW access you should review webserver access logs and look for 404 not found or 401 authorization required codes.

    hope this helps.



    ------------------------------
    Ralf Roeber
    https://linkedin.com/in/ralf-roeber/
    ------------------------------