Bug 47594 - [FILESAVE/FILEOPEN] Writer badly open (docx) files that he created
Summary: [FILESAVE/FILEOPEN] Writer badly open (docx) files that he created
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.1 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-20 09:10 UTC by Mateusz
Modified: 2013-02-12 12:34 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot with 2 version: before (ok) and after (narrower) (134.95 KB, image/png)
2012-03-20 09:10 UTC, Mateusz
Details
source file (5.05 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2012-03-20 09:11 UTC, Mateusz
Details
LO 4.0 alpha0 - losted borders (Microsoft Word 2007-2010 XML) (47.61 KB, image/png)
2012-11-16 13:40 UTC, Mateusz
Details
LO 4.0 alpha0 - losted formating (Office Open XML Text) (64.90 KB, image/png)
2012-11-16 13:41 UTC, Mateusz
Details
properly redering (word viewer) (48.63 KB, image/png)
2012-11-16 13:41 UTC, Mateusz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz 2012-03-20 09:10:34 UTC
Created attachment 58766 [details]
Screenshot with 2 version: before (ok) and after (narrower)

Hello world

There is docx file with tables, created with Word 2007-2010 and Writer opens this correctly. But if you wrote down anything and save it, close Writer and open file again then you pointed out that Writer display document in another way. All tables will be narrower.
Comment 1 Mateusz 2012-03-20 09:11:34 UTC
Created attachment 58767 [details]
source file
Comment 2 s-joyemusequna 2012-03-20 10:38:44 UTC
Hello,

I opened the source file with LibO 3.5.1. 

It is displayed wrongly (narrower, like on the right side of your screen shot).
When I open the same file with Word 2007, it is displayed OK.

When a save the source file with LibO 3.5.1 and open it with Word, it is OK. When I open it with LibO 3.5.1, it is narrower.

Exactly the same, if I save the file with LibO 3.3.4 or 3.4.5 (tested on Windows XP and Vista 64).

So I confirm that the file is not correctly displayed when opened with LibO 3.5.1, 3.4.5, and 3.3.4. The file is OK -even if resaved with LibO- when opened with Word 2007.
Comment 3 Mateusz 2012-11-16 13:40:01 UTC
Hey

Today I test it with master~2012-11-14_23.42.40_LibO-Dev_4.0.0.0.alpha0_Win_x86_install_en-US (daily build from 16 November)

Now then this regression is eliminated but two new appear.

If you saved file in default format (Microsoft Word 2007/2010 XML) there will disappear borders in table

If you saved file in Office Open XML Text, content lost their formating. 

Anyone can explain me, why there are two docx format to choose and both of them are creepy? It is a little confused for normal user and should be binded.

Moreover, import filter still works much worse than e.g. Word Viewer. :(
Comment 4 Mateusz 2012-11-16 13:40:38 UTC
Created attachment 70158 [details]
LO 4.0 alpha0 - losted borders (Microsoft Word 2007-2010 XML)
Comment 5 Mateusz 2012-11-16 13:41:02 UTC
Created attachment 70159 [details]
LO 4.0 alpha0 - losted formating (Office Open XML Text)
Comment 6 Mateusz 2012-11-16 13:41:34 UTC
Created attachment 70160 [details]
properly redering (word viewer)
Comment 7 Mateusz 2012-12-09 09:33:13 UTC
Hey

4.0beta1 is much better but still has two, another regressions. 

First: whole table is narrower than should be.

Second: one column disappear altogether. There is something like double border (neraby "Data wystawienia" column). At first user must grab 'double border' and drag it on the left, and next do the same with whole table, but in the right side. This error doesn't exist neither 3.5.1 nor 4.0alpha0.
Comment 8 Michael Meeks 2013-01-08 16:56:55 UTC
Mateusz - thanks for your testing ! :-)

The best way to get individual bugs fixed is not to file a single bug with a complex document :-) Instead - it is far better to file a larger number of very small & apparently simple documents each with a single issue and steps to reproduce it.

That really helps us track what issues are alive, and which are fixed - to isolate each of those issues, to associate git commits with each of the issues as it is fixed, and to bring them to a clean resolution - which helps everyone.

Any chance you can split this bug up into a set of smaller bugs, and work out which versions these regressed in (if they are regressions) etc. ? :-)

many thanks !
Comment 9 Mateusz 2013-01-12 10:12:20 UTC
Hey Michael

You asked for it and got it.

Bug 59273 - FILEOPEN: Writer doesn't display all table cells in DOCX file
https://bugs.freedesktop.org/show_bug.cgi?id=59273

Bug 59274 - FILEOPEN: table in DOCX file is more narrower than it should be
https://bugs.freedesktop.org/show_bug.cgi?id=59274

Bug 59275 - FILESAVE: table lost borders after save as DOCX [but maybe it should?]
https://bugs.freedesktop.org/show_bug.cgi?id=59275

Bug 59277 - Two OpenXML filter to choose from. One to delete?
https://bugs.freedesktop.org/show_bug.cgi?id=59277
Comment 10 Rainer Bielefeld Retired 2013-02-12 12:34:14 UTC
I close this one due to the problems  Michael Meeks already mentioned.
Please feel free to open more Bug reports related to the sample document if bugs mentioned in Comment 9 do not show all problems related to the sample document:
<https://wiki.documentfoundation.org/QA-FAQ#How_to_use_attached_sample_documents_for_multiple_Bug_Reports>