Hitachi Vantara Pentaho Community Forums
Results 1 to 8 of 8

Thread: Reports losing formatting in CDF

  1. #1
    Join Date
    Jul 2009
    Posts
    9

    Default Reports losing formatting in CDF

    Hi,

    I am new to Pentaho and working on dashboard for the first time.
    I want to have a cdf with 4 reports.
    The problem is that when i added more than one report to the dashboard the reports loses there formatting. The font sizes ,text alignment doesnot remain the same.
    I have created the reports in Report Designer 2.0 and the reports look fine individually..

    Can anyone help me on what i am missing ????

  2. #2
    Join Date
    Mar 2003
    Posts
    8,085

    Default

    When you generate reports that should be included in an other web-page, then the reports should have the "BodyFragment" configuration setting enabled.

    Citrus:
    org.pentaho.reporting.engine.classic.core.modules.output.table.html.BodyFragment

    Pre-Citrus:
    org.jfree.report.modules.output.table.html.BodyFragment

    This setting tells the engine to *not* generate a <html> and <body> tag and to inline all style-information in the HTML-elements instead of generating an external CSS-file.
    Get the latest news and tips and tricks for Pentaho Reporting at the Pentaho Reporting Blog.

  3. #3
    Join Date
    Jul 2009
    Posts
    9

    Default

    Thanks Taqua..but where can where should i enable this "Body Fragment" setting ?

  4. #4
    Join Date
    Jan 2008
    Posts
    177

    Default

    Perfect Taqua!
    Bodyfragment is a class of pentaho reporting package and you can set into the report definition file (.xml)

  5. #5
    Join Date
    Mar 2006
    Posts
    142

    Default

    Can someone provide an example of this BodyFragment setting in use in an .xml file ?

  6. #6

    Default

    in pre-3.5: add
    Code:
    <property name="org.jfree.report.modules.output.table.html.BodyFragmentCreation">true</property>
    to the report-config\configuration element


    in PRD 3.5:
    file --> configuration --> output-table-html
    check BodyFragment and set it to true

    Regards,

    Bart
    Last edited by bamaer; 11-16-2009 at 05:26 PM.

  7. #7
    Join Date
    Mar 2006
    Posts
    142

    Default

    Thank you.

  8. #8
    Join Date
    Aug 2007
    Posts
    198

    Default How to add the reports to the dashboard

    Hello,

    How do i add reports to the dashboard.

    Please give me the steps.

    Parveen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.