Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

.docx from Office 2013

Jamal Carter December 17, 2013

getting this error from the viewfile macro

viewfile: java.lang.RuntimeException: com.aspose.words.FileCorruptedException: The document appears to be corrupted and cannot be loaded.

currently on confluence 5.2.3

is *.docx supported in confluence for Office 2013, if so what version ?

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
jing_hwa_cheok
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 10, 2014

Hi Jamal,


You might have run i to a known bug https://jira.atlassian.com/browse/CONF-29242. Confluence office view macro does not display .docx file from office 2013 properly. Here's the explanation taken directly from the bug report.

From http://en.wikipedia.org/wiki/Office_Open_XML:
"Starting with Microsoft Office 2007, the Office Open XML file formats have become the default[3] target file format of Microsoft Office.[4][5] Microsoft Office 2010 provides read support for ECMA-376, read/write support for ISO/IEC 29500 Transitional, and read support for ISO/IEC 29500 Strict.[6] Microsoft Office 2013 additionally supports both reading and writing of ISO/IEC 29500 Strict.[7]"
It looks like a file with the .docx extension may be either ISO 29500 Transitional or ISO 29500 Strict. Word 2010 only writes the Transitional type of ISO 29500. It looks like Word 2013 could be either Transitional or Strict. See:
http://technet.microsoft.com/en-us/library/dd797428.aspx
But in theory Strict is supposed to be a subset of Transitional. So if a Transitional document created by Word 2010 works, you'd think that a Strict one would work too. However, it seems that when they standardized Strict they also made a change to namespaces. That is probably the key to fixing this. For more info see: http://blogs.msdn.com/b/dmahugh/archive/2010/04/06/office-s-support-for-iso-iec-29500-strict.aspx
Also http://en.wikipedia.org/wiki/Office_Open_XML#Compatibility_between_versionsstates:
"Applications able to read documents compliant to ECMA-376 edition 1 will regard ISO/IEC 29500-4 Transitional documents containing ISO 8601 dates as corrupt."


Hope this clear your doubts.


Regards,
Jing Hwa

0 votes
Jamal Carter January 10, 2014

its created and saved in Office 2013. created a plain document with no special formatting that reads "test, test, test". Office 2010 works, 2013 produces this error

0 votes
Chung Park Chan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 19, 2013

Is the .docx file previously created through Confluence page export?

TAGS
AUG Leaders

Atlassian Community Events