Page 1 of 1

How to save document in 2007 compatibility mode?

PostPosted: Sat May 24, 2014 3:19 am
by barrys
I would like to know if it is possible to save documents in 2007 compatibility mode. And if it is, how to do it?

Basically, I am converting a document from html to docx using docx4j-XHTMLImporterImpl. After the conversion is performed, a set of reformatting tasks are performed using docx4j (e.g., inserting lines, moving text into headers and footers, resizing tables, highlighting). The final step is saving the document as a docx file.

The document opens without a problem in Word 2010, however, it cannot be opened in Word 2007. If opened with Word 2010 and saved in 2007 compatibility mode, the document opens successfully using Word 2007. Without digging into the all the code that goes into manipulating the document to find out why the document cannot be opened in 2007, the easiest solution would be just to save it in 2007 compatibility mode in the first place. Our customer uses Word 2007 exclusively. Can anyone shed any light on this?

Thanks!
Barry

Re: How to save document in 2007 compatibility mode?

PostPosted: Sat May 24, 2014 7:12 am
by jason
As a general rule, documents created with docx4j should open in Word 2007 without issue.

That you document doesn't suggests there is something wrong with it:- something that Word 2010 forgives but 2007 doesn't.

So I'd be looking to find/fix it.

That said, for the answer to your question see docx-java-f6/2007-2010-compatibility-mode-for-files-saved-with-docx4j-t954.html