Jump to content
We've recently updated our Privacy Statement, available here ×
  • How to configure JasperReports Server to not truncate AdHoc Crosstab’s columns


    akonkin
    • Features: Exporters, JasperReports Server Product: JasperReports® Library

    Quoting the original question:

    Theming / Templating VisualiseJS:

    Is there a way of creating a Report Template with a dynamic width? E.g. if I want to use a report template for a report created from an ad-hoc where the width can vary is this possible?


    Currently the report template truncates the cross-tab if the ah-hoc is wider.


    Answer:

    I suppose that this question is a bit deeper than visualize.js level.


    Please see the property below:


    net.sf.jasperreports.crosstab.ignore.width = true


    and its explanation in Configuration Reference:

    http://jasperreports.sourceforge.net/config.reference.html#net.sf.jasperreports.crosstab.ignore.width


    ignoreWidth: Indicates whether the crosstab will stretch beyond the initial

    crosstab width limit and don't generate column breaks.

    Else it will stop rendering columns within the crosstab width limit and continue

    with the remaining columns only after all rows have started rendering. The default value is false.


    Some additional comments regarding this property:

    The ignoreWidth property causes the crosstab to expand over the report page width.

    The crosstab is exported to formats that do not enforce the page width for the output

    (such as HTML, Excel and CSV), but the crosstab is truncated

    in exporters that set a page width such as PDF or RTF.


    Since this is a PDF limitation, the only workaround to export crosstab to PDF

    is to design your crosstab to fit into page width.

     


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...