https://bugs.documentfoundation.org/show_bug.cgi?id=149798
Bug ID: 149798
Summary: Error when opening a particular Office Open XML
document after saving, among other saving issues
Product: LibreOffice
Version: 7.3.2.2 release
Hardware: x86-64 (AMD64)
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Description:
This was a Word OOXML file I got for school, and I figures the LibreOffice
community ought to know about it so LibreOffice's handling of OOXML files could
be improved. I rarely leave bug reports, so please bear with me.
With this particular OOXML .docx file, whenever I put data inside the these
text fields, first seen on page 6, then save the file as a OOXML file, then try
to open the file again, I get an error message and apparent damage to the file.
Exporting the file as a PDF from the Save As dialog yielded strange results
too, but that is minimal.
I am using LibreOffice 7.3.2.2 x64 on Windows 10. I haven't tested this on
MacOS or Linux.
Steps to Reproduce:
1. Open this .docx file in LibreOffice Writer.
2. Scroll down until you find a table that has this text field inside of it.
The first one you'll find is on page 6.
3. Type something in those text fields.
4. Save the document as a "Word 2007-365 Document." Notice the save appears
successful.
5. Close the document or LibreOffice entirely.
6. Open your newly saved file with LibreOffice again.
Actual Results:
A "Confirmation" dialog box appeared which starts off with "An error occurred
during opening the file. This may be caused by incorrect file contents." If you
click "Yes" to have LibreOffice ignore the error and reload the file, the table
and text fields that had the stuff you typed in is gone, along with everything
that came after it.
Expected Results:
Opening the document without errors, and with all the data inside the document
intact. Essentially, the same or at least similar to what I was just working
on. Yes, I know OOXML is complete garbage.
Reproducible: Always
User Profile Reset: Yes
OpenGL enabled: Yes
Additional Info:
By the way, should the error message say "An error occurred _while_ opening the
file" instead of "during?" I feel like that's a grammatical error.
How I worked around this kind-of but nor really:
1. Save as an OpenDocument Text file. That worked. Unfortunately, my instructor
wouldn't let me turn in a .odt file.
2. Export as a PDF file. That also worked. My instructor did let me turn one of
these in. Although, at one time, it killed everything inside the document and
left nothing but a single text field. That happened when exporting as a PDF
through the menu and using the defaults. It didn't happen with the .odt file
however.
3. Saving as a Word 97-2003 document, although the stuff typed in to those text
fields are gone - as a matter of fact, the fields were completely gone; and the
formatting is all messed up. It left the tables, though.
--
You are receiving this mail because:
You are the assignee for the bug.