Page 1 of 1

Word 2007 - corrupted docs files

PostPosted: Mon Jul 08, 2013 8:24 pm
by claborde
Hello,

I'm new to docx4j, and i'm using the simple web app provided in the anchored threads to generate Word files from templates+XML input.
It's working great with XHTML generation, but the generate docx files cannot be oppened in Word 2007 : it says to they are corrupted.

It is the same with the templates/input i have created, and with the provided ones (invoice docs).

Any idea on this ? I'm using Tomcat 7, and have generated the war file using maven 3.0.4

Thanks !

Re: Simple web app generating corrupted docs files

PostPosted: Tue Jul 09, 2013 12:05 am
by jason
You could try replacing the docx4j jar file in WEB-INF/lib with a current nightly, to see whether that helps.

Strange that you'd be having problems with the example invoice docx. Could you please post the generated output, and I will take a look.

Re: Simple web app generating corrupted docs files

PostPosted: Tue Jul 09, 2013 2:08 am
by claborde
Here the result I get.

Re: Word 2007 - corrupted docs files

PostPosted: Tue Jul 09, 2013 11:23 am
by jason
Your file opened fine for me using Word 2007 SP2 (12.0.6554.5001)

Which version exactly of Word 2007 are you using?

It also opens fine for me in Word 2010, which is why I changed the subject of this thread.

Re: Word 2007 - corrupted docs files

PostPosted: Tue Jul 09, 2013 5:53 pm
by claborde
My Word 2007 version is 12.0.4518.1014

Re: Word 2007 - corrupted docs files

PostPosted: Tue Jul 09, 2013 10:40 pm
by jason
Seems like you might need to apply service pack 1 or 2.

Please let us know whether service pack 1 solves the problem.

Re: Word 2007 - corrupted docs files

PostPosted: Wed Jul 10, 2013 12:24 am
by claborde
I've tried with one of the latest Word 2007 SP3 version, and I can't opened it either :'(