Cognos Analytics

Cognos Analytics

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

 View Only
  • 1.  Insert visualization on new page in report PDF

    Posted Wed February 02, 2022 04:57 PM
    Hi all, 
    i would like to insert a visualization on a new page in PDF version of a report. Now i'm doing it with a blank space in the previous block. There is a more elegant way to do it?
    thank

    ------------------------------
    valerio pascarella
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Insert visualization on new page in report PDF

    Posted Thu February 03, 2022 03:10 AM
    Good morning,

    There are multiple ways of doing it. If you just want a second page then add it in the page pane. Keep in mind that this will lead the report user to click for getting to the next page.

    If you don't want two pages with the online report and just two pages in PDF, I'd suggest to create conditional layouts to get different report pages for the output formats. We do this with every report we create to have the flexibility to create different layouts for HTML, Excel and PDF.
    My approach:
    1. create a string variable with the expression "ReportOutput()" and define values. We use PDF and spreadhseetML
    2. set this variable as conditional layout on the report properties

    3. You'll then get different pages in your report for the output formats you have defined.
    4. You don't have to recreate all data containers on all of the pages. Instead give your objects individual names and reference these names with "Layout component references". If objects don't have the property "Name" place them in a block and give them a name instead.



    If you don't want to set up multiple layouts you can also just create a boolean variable stating ReportOutput()='PDF'. You'll then have just two layouts. That's up to you.
    I hope this helps.

    ------------------------------
    Robert Dostal
    Team Leader BI
    GEMÜ
    Ingelfingen
    ------------------------------



  • 3.  RE: Insert visualization on new page in report PDF

    Posted Thu February 03, 2022 10:38 AM
    Very interesting! A more minimal approach could be to put a conditional format only on the "blank space" such that it is present for PDF but not for HTML. Depending on the type of "blank space" you have the following options/properties using conditions like Robert's:

    ------------------------------
    Philipp Hornung
    ------------------------------



  • 4.  RE: Insert visualization on new page in report PDF

    Posted Thu February 03, 2022 03:14 AM
    Hi Valerio,

    From Report, click Page, then drag a page from Insertable objects.

    You will have Page1 and Page2. You might be able to add a new visualization in Page2.


    Best regards,

    ------------------------------
    Patrick Neveu
    Positive Thinking Company
    ------------------------------



  • 5.  RE: Insert visualization on new page in report PDF

    Posted Thu February 03, 2022 09:10 AM

    Insert visualization on new page in report PDF



    ------------------------------
    md shariful islam
    Admin
    BloggerEarn
    Atlanta
    ------------------------------



  • 6.  RE: Insert visualization on new page in report PDF

    Posted Fri February 04, 2022 03:35 AM
    Thank you all, but unfortunately there was a misunderstanding.
    I have already a page only for pdf with multiple visualization.
    Each visualization has a title, a description and the visualization itself. My problem is that some texts remain on one page, while the graphic ends up on the next page, due to lack of space on the previous one.

    At the moment I am adding a space before the titles to bring everything on the same page.
    Exists a page break command to align everything on the same page?


    ------------------------------
    valerio pascarella
    ------------------------------



  • 7.  RE: Insert visualization on new page in report PDF

    Posted Fri February 04, 2022 03:50 AM
    Hi Valerio,

    I guess you might want to use the Size & overflow properties for each visualization:
    https://www.ibm.com/docs/en/cognos-analytics/11.1.0?topic=report-specify-height-width-object
    https://www.ibm.com/docs/en/cognos-analytics/11.2.0?topic=report-specify-height-width-object

    Best regards,

    ------------------------------
    Patrick Neveu
    Positive Thinking Company
    ------------------------------



  • 8.  RE: Insert visualization on new page in report PDF

    Posted Fri February 04, 2022 04:45 AM
    Hi, I recommend to separate pages static (1) or dynamic (2): 
    https://www.ibm.com/docs/en/cognos-analytics/11.1.0?topic=pages-add-page-report
    https://www.ibm.com/docs/en/cognos-analytics/11.1.0?topic=pages-page-breaks-page-sets-page-layers

    ------------------------------
    Philipp Hornung
    ------------------------------