Jump to content
  • Jasper Library - Docx Exporter problems


    gert_1
    Assigned User shertage
    CategoryBug report
    PriorityUrgent
    ReproducibilityAlways
    ResolutionFixed
    SeverityMajor
    StatusResolved
    Versionv6.1

    User Feedback

    Recommended Comments

    Uploaded an example jrxml. I'm not sure if this is the same problem, but the docx output is definitely wrong. Within the frame (second row), the left page margin is subtracted from the first column width.
    Link to comment
    Share on other sites

    Changed Status from Feedback Requested to Assigned


    Created the same report with Jaspersoft Studio 6.1.1. Same problem here.This bug seems to be introduced in JasperReports Library 6.0.2. Instead of setting the page margins to 0 and inserting extra columns for the necessary spacing, JasperReports now utilizes the Word page margins correctly. While this is an improvement, nested tables are handled incorrectly.
    Link to comment
    Share on other sites

    This patch fixes the problem.

    However, the exporter still generates two 's for tables with only one column. It also still generates 1-twip-wide 's for zero-width columns. Would it not be possible to suppress those?

    Link to comment
    Share on other sites

    Hi Laurenshop,

     

    Awesome you made a patch. Can you provide any help/ documentation on how to implement patches? Have no experience with that at all and would really like to test if it works for our reports.

     

    Thanks in advance!

    Link to comment
    Share on other sites

    I included the patch primarily to point out the cause and to give a suggestion for a way to fix it, hoping it will be fixed soon in an official release. In the meantime, you can build a custom version. Just clone the source (git clone git://git.code.sf.net/p/jasperreports/code jasperreports-code), checkout v6.1.1 (git checkout jr-6-1-1-x), customize the version number in the pom.xml, git apply the patch and run mvn install.
    Link to comment
    Share on other sites

    Changed Assigned User from @teodord to @shertage


    Hi,A fix for below listed issues will be part of the upcoming release:- removed unwanted margins from nested tables;- removed the additional column in single-column tablesSources are available on the git repository.Thanks,Sanda
    Link to comment
    Share on other sites


×
×
  • Create New...