rino.covelli Posted September 27, 2013 Share Posted September 27, 2013 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(); exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME,pathFile); exporter.setParameter(JRExporterParameter.JASPER_PRINT,reportFilled); exporter.exportReport();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 More sharing options...
sjoerd.jump Posted September 27, 2013 Share Posted September 27, 2013 Is your page in iReport the same size as the A4 format?default settings of the iReport page are: 842 x 595default margins are 20 20 20 20.Cross check this with your Word. There might be a conflict there. Link to comment Share on other sites More sharing options...
rino.covelli Posted September 27, 2013 Author Share Posted September 27, 2013 I'm using the default setting in IReport. My IReport page is 842x595 and the margins are 20. Link to comment Share on other sites More sharing options...
sjoerd.jump Posted September 27, 2013 Share Posted September 27, 2013 Is there an overflow on a cell that is bigger than your margin when generated? Link to comment Share on other sites More sharing options...
rino.covelli Posted September 27, 2013 Author Share Posted September 27, 2013 I don't think, why this happened also with a blank tempate. Link to comment Share on other sites More sharing options...
sjoerd.jump Posted September 27, 2013 Share Posted September 27, 2013 How about this solution? Sounds like its on the "word" side of the export http://support.microsoft.com/kb/314568 Link to comment Share on other sites More sharing options...
rino.covelli Posted September 27, 2013 Author Share Posted September 27, 2013 I would want to solve it jasper side Link to comment Share on other sites More sharing options...
sjoerd.jump Posted September 27, 2013 Share Posted September 27, 2013 Dont think that your problem is on the jasperside. Link to comment Share on other sites More sharing options...
tanguy.yves Posted January 22, 2014 Share Posted January 22, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now