StimVinsh / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

Corrupt file message generating report with header/footer #121

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Create a docx template with header or footer with Ms Word 2007
2.pass parameters and generate as docx file
3.open generated file with Ms Word 2007. corrupt file message appears

This behavior not occour when try with the same file but without header or 
footer

What is the expected output? What do you see instead?
the generated file witout error message-

What version of the product are you using? On what operating system?
windows xp, xdocreport 0.9.7

Please provide any additional information below.
if open the generated file with libre office the error message not appear.

Seems like some error generating the file when the template has header or footer

Original issue reported on code.google.com by stevev...@gmail.com on 14 Jun 2012 at 3:37

GoogleCodeExporter commented 8 years ago
Hi,

Could you attache please your docx, Java code (pojo, main) to test your problem 
please.

Many thank's 

Regards Angelo

Original comment by angelo.z...@gmail.com on 14 Jun 2012 at 3:41

GoogleCodeExporter commented 8 years ago
Thanks.

TestXDocReport.java contanins the main method to test the problem.

template1.docx not have header. the generated file open fine.
template2.docx have a simple header. the generated file show a corrupt file 
message when open. still word 2007 permits repair it. but this confuse to some 
users.

BTW. thanks for the rapid answer. :) 

Original comment by stevev...@gmail.com on 14 Jun 2012 at 4:04

Attachments:

GoogleCodeExporter commented 8 years ago
Hi, 

I have implemented the page break before/after for docx => 
http://code.google.com/p/xdocreport/wiki/DocxReportingJavaMainHTMLTextStyling#At
tributes and for odt => 
http://code.google.com/p/xdocreport/wiki/ODTReportingJavaMainHTMLTextStyling#Att
ributes

I have fixed the problem. Problems comes from a endnotes which defines sperator 
> 0.

By waiting the release of 0.9.8 you can test it by getting the source of Git or 
use Maven.

Regards Angelo

Original comment by angelo.z...@gmail.com on 25 Jun 2012 at 2:14

GoogleCodeExporter commented 8 years ago

Original comment by angelo.z...@gmail.com on 25 Jun 2012 at 2:26