Jump to content
Changes to the Jaspersoft community edition download ×

Recommended Posts

Dear friends, I'm building a report using JasperReport 5.0.0 and IReport 5.1.0. Now my trouble is that when i try to export a docx file through DocxExporter,t I can't set margins of sheet.

I'm exporting the document in this way:

    JasperReport reportCompiled = JasperCompileManager.compileReport(pathJrxmlFile);
    JasperPrint  reportFilled = JasperFillManager.fillReport(reportCompiled, null, dataSource);

    JRDocxExporter exp = new JRDocxExporter();

but this doesn't work. And then when i try to print if from MS word i get this message "margins of section 1 are set outside the printable area of the page".

Where do I wrong?




Link to comment
Share on other sites

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 3 months later...

Hello ,


I am facing this issue as well and so far no solution found even with migration from iReport 5.0.1 to 5.1.0 release.


In addition recurrent problems are still there with 5.1.0 : docx document is seen like a set of pages made of tables


that is probably the reason of bad printing.


Thus has someone already been able to export and generate a real docx document ?


Best regards, Yves.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...