Jump to content
  • Allow to prevent text wrap when exporting to XLS


    kneblix
    Assigned User shertage
    CategoryFeature request
    PriorityNormal
    ReproducibilityN/A
    ResolutionFixed
    SeverityMinor
    StatusClosed

    In project I'm working on I need to export relatively long text into smaller cell. I use to prevent text from being truncated. It works but text is wrapped and I fail to find workaround for this behaviour. I examined source code and it seems wrap property for cell is set to true by default.

     

    Please add some way to choose beteween text-wrap/no-wrap.



    User Feedback

    Recommended Comments

    Hi,

     

    I think this could be solved only by introducing a custom property at element level to signal the XLS exporter that the cell should be marked as no-wrap.

     

    Would that work for you?

     

    Thanks,

    Teodor

    Link to comment
    Share on other sites

    A new custom property was introduced at element level: "net.sf.jasperreports.export.xls.wrap.text". If it is set to true, then the cell will allow text wrapping, otherwise text wrapping is forbidden.

     

    The default value for this property is "true".

     

    Sources were committed on svn (rev. 3783).

    Link to comment
    Share on other sites

    Hi,

     

    The scope of this exporter hint property was extended to Global and Report, in addition to Element.

    The enhancement is available on SVN and will be shipped with the next release.

     

    Thanks,

    Teodor

     

    Link to comment
    Share on other sites


×
×
  • Create New...