Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 

 View Only
  • 1.  Barcode generation via cognos

    Posted Mon April 13, 2020 11:13 AM
    Hi,
    We have a business requirement to generate barcodes via cognos reports.
    We have standard product codes and we would like to generate barcodes from cognos.
    In our current setup, we have crystal reports to generate barcode for our warehouse associates and we are planning to migrate crystal to cognos. One of major blocker is barcode generation.
    Online research pointed out to some additional fonts for barcodes. Not sure of the entire approach and if its even possible in cognos.

    https://www.ibm.com/developerworks/community/forums/html/threadTopic?id=77777777-0000-0000-0000-000014919236
    http://www.avapose.com/java_barcode/qrcode_generator.shtml
    https://www.barcodefaq.com/blog/components/how-to-create-barcodes-in-cognos/

    Thank you for your help in advance.

    ------------------------------
    Sudheen Kulkarni
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Barcode generation via cognos

    Posted Tue April 14, 2020 10:23 AM

    Hi there Sudheen,
    We've managed to get Cognos reports to generate barcodes by simply embedding a google barcode font, rather than importing a font into the Cognos application.
    eg: https://fonts.google.com/specimen/Libre+Barcode+128

    This worked for both HTML and PDF based reports.

    cheers,
    Jacqui



    ------------------------------
    Jacqui Drew
    ------------------------------



  • 3.  RE: Barcode generation via cognos

    Posted Wed April 15, 2020 12:08 AM
    Thank you Jacqui.
    I really appreciate your response. So you didnt have you import any fonts to cognos application?
    Can you share an example on how you managed to embed the google font. Thank you in advance.

    ------------------------------
    Sudheen Kulkarni
    ------------------------------



  • 4.  RE: Barcode generation via cognos

    Posted Mon April 20, 2020 02:46 AM
    Hi Sudheen

    It's just a font you install on the Cognos Server - more info here:
    https://www.ibm.com/support/pages/embedding-cognos-custom-fonts-pdf-report-format

    https://www.ibm.com/developerworks/data/library/cognos/page85.html

    Torben

    ------------------------------
    Torben Noer
    ------------------------------



  • 5.  RE: Barcode generation via cognos

    Posted Mon April 20, 2020 11:48 AM
    Hi @Troben,
    Thank you for the input. Yes, I am able to import fonts and generate barcodes via pdf.
    However, my business use case is to generate barcodes in html for printing purposes.
    Is there any workaround for html? Thank you.​

    ------------------------------
    Sudheen Kulkarni
    ------------------------------



  • 6.  RE: Barcode generation via cognos

    Posted Mon April 20, 2020 02:59 PM

    Normally, PDF is rendered on the server side (so the font needs to be installed on the CA server) and html is rendered in the browser - on the client side (so the font needs to be installed on the laptop) - could you test this by installing the barcode font on the laptop you are using? Or alternatively, using a browser directly on the server?

    Torben



    ------------------------------
    Torben Noer
    ------------------------------



  • 7.  RE: Barcode generation via cognos

    Posted Mon April 20, 2020 11:54 PM
    Thank you very much! Everything works in html format now. I have tested installing fonts on my local laptop.

    ------------------------------
    Sudheen Kulkarni
    ------------------------------