[Libreoffice-bugs] [Bug 108269] New: DOCM files can' t be opened in Word after a roundtrip in Writer (until renaming)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed May 31 16:22:47 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=108269

            Bug ID: 108269
           Summary: DOCM files can't be opened in Word after a roundtrip
                    in Writer (until renaming)
           Product: LibreOffice
           Version: 4.0.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: filter:docx
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: baron at caesar.elte.hu
                CC: michael.meeks at collabora.com
            Blocks: 104528

Known limitations (not a concern of this bug report):
- Writer doesn't handle VBA macros.
- It doesn't even preserve macros (seems like section "You can choose to
preserve or delete VBA macros" in [1] is not valid for newer, OOXML formats, at
least in Writer).

Open and save the attached files in Writer. Both are DOCMs created in Word
2013, one has macro, the other doesn't.
Open the roundtripped file in Word.

=> Word gives an error: "We're sorry. We can't open <file name> because we
found a problem with its contents."
The file can only be opened after renaming it to have .DOCX extension.

One particular difference is that in the original archive /word/document.xml
has ContentType "application/vnd.ms-word.document.macroEnabled.main+xml", while
in the roundtripped file it's
"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml".

Observed with 5.4beta1 and 4.0.0.3 / Windows 7.

[1] https://help.libreoffice.org/Common/Using_Microsoft_Office_and


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=104528
[Bug 104528] [META] FILESAVE: DOCX: Corrupted file in MSO Word after RT
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170531/a35acb72/attachment-0001.html>


More information about the Libreoffice-bugs mailing list