Details
-
Bug
-
Resolution: Fixed
-
Low
-
None
-
None
-
13
-
Description
NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.
Error message is rendered:
Error rendering macro 'viewdoc' : java.lang.RuntimeException: com.aspose.words.FileCorruptedException: The document appears to be corrupted and cannot be loaded.
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_versions states:
"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."
.docx from 2010 displays normally
Attachments
Issue Links
- is incorporated by
-
CONFSERVER-29342 Office connector should support MS Office 2013
- Closed
- relates to
-
CONFCLOUD-29242 Office Word macro does not display .docx from 2013
- Closed