Bug 41468 - FILEOPEN: table in particular MSO2007 .docx file has excessively wide and out of bounds last column
Summary: FILEOPEN: table in particular MSO2007 .docx file has excessively wide and out...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium major
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords: filter:docx
: 60952 62026 79722 (view as bug list)
Depends on:
Blocks: DOCX-Tables
  Show dependency treegraph
 
Reported: 2011-10-04 21:20 UTC by Maarten Hennekam
Modified: 2019-12-09 14:04 UTC (History)
11 users (show)

See Also:
Crash report or crash signature:


Attachments
These are two documents in Word, 1 withprotection the other without protection (71.61 KB, application/x-zip)
2011-10-04 21:29 UTC, Maarten Hennekam
Details
screenshot in LibO 4.2.4.2 (84.79 KB, image/png)
2014-07-06 07:04 UTC, tommy27
Details
PDF printed from Mac Word 2011 (156.42 KB, application/pdf)
2015-04-10 08:10 UTC, Matthew Francis
Details
docx which contains a table which is not correctly displayed in LO 5.4 (8.99 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-12-08 20:10 UTC, Uwe Brauer
Details
screenshot of how LO display incorrectly a table in a docx document (47.25 KB, image/png)
2019-01-22 14:46 UTC, Uwe Brauer
Details
table still not correctly displayed in 6.1.0.2 width needs to be set to automatic (107.75 KB, image/png)
2019-01-22 16:09 UTC, Uwe Brauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maarten Hennekam 2011-10-04 21:20:55 UTC
Problem description: This word file does not open correctly at all. Most information is missing.

Steps to reproduce:
1. Just open the file2. ....
3. ....

Current behavior:

Expected behavior:
Comment 1 Maarten Hennekam 2011-10-04 21:29:07 UTC
Created attachment 51988 [details]
These are two documents in Word, 1 withprotection the other without protection
Comment 2 Rainer Bielefeld Retired 2011-10-04 22:54:27 UTC
I don't know why 2 documents have been attached, I tested with "CONTRACT RISK REVIEW TEMPLATE UNPROTECTED.docx".

[Reproducible] with "LibreOffice 3.4.3 RC2 - WIN7 Home Premium (64bit) German UI [OOO340m1 (Build:302)]", import result is completely unusable.

Still a problem with Server installation of Master "LibO-dev 3.5.0 – WIN7 Home Premium (64bit) English UI [(Build ID: 81607ad-3dca5fd-da627d2)]".

Worked find with "LibreOffice Portable 3.3.3  - WIN7  Home Premium (64bit) German UI [OOO330m19 (Build:301  Tag 3.3.3.1)]" 

@Cédric:
Please feel free to reassign (or reset Assignee to default) if it’s not your area or if provided information is not sufficient. Please set Status to ASSIGNED if you accept this Bug.

@Maarten Hennekam
Your Operating System is?

- Reported with Bug Submission Assistant -
Comment 3 Pedro 2012-01-07 05:41:50 UTC
I can confirm that only the first two lines of this 4 page DOCX document are visible when using LO 3.4.5RC2

Under LO 3.5.0Beta2 the whole document is loaded but the first table formatting is lost (which makes it unreadable)
Comment 4 Roman Eisele 2012-04-18 00:52:41 UTC
Tested again with LibreOffice 3.5.2.2 (Build-ID: 281b639-6baa1d3-ef66a77-d866f25-f36d45f) running on MacOS X 10.6.8 German to see if there is any progress about this bug. Like Rainer Bielefeld, I tested with the file 'CONTRACT RISK REVIEW TEMPLATE UNPROTECTED.docx'. The situation is still similar to the one reported by Pedro (comment #3) for 3.5.0Beta2:

The completed document is loaded and shown (a big progress!), but the formatting of the first (big) table containing the risk factors is not correct: both the whole table and the 1st column are far too wide, therefore the last (4th) column is outside of the page (in the right margin) and so not visible at all.

So the remaining main problem is that table (column) widths are still not imported correctly from the DOCX file.
Comment 5 Roman Eisele 2012-06-15 02:25:57 UTC
(In reply to comment #4)
> So the remaining main problem is that table (column) widths are still not
> imported correctly from the DOCX file.

^This is still true with LibreOffice 3.6.0beta1 (Build ID: 1f1cdd8), tested on MacOS X 10.6.8.
Comment 6 Roman Eisele 2012-06-15 02:47:20 UTC
Setting the focus on the remaining problems in LibreOffice 3.5.x and 3.6 beta 1, I have updated Summary, Platform and Importance fields according to comment #3, comment #4 and comment #5. (I have lowered the importance because it is now rather easy to make the complete table visible again -- but it is still annoying, of course.)

@Miklos:
Given the fact that you are our RTF and dmapper expert, could you please take a look at this .docx import problem? To me (as a layman) it sounds similar to some bugs you have fixed in the last time, so maybe you can figure out rather easily what is going wrong here with the column widths ... Thank you very much!
Comment 7 Michael Stahl (allotropia) 2012-12-18 13:54:21 UTC
the "cannot import anything" problem appears to be fixed.

so... it appears that the table and the first column of the table
have been excessively wide in all OOo/LO releases i've tried going
back to OOo 3.0.1, so this is not a regression.

current master improves over 3.6 branch because the first column
is no longer excessively wide, however the table is still too wide
to fit.
Comment 8 Zeki Bildirici 2013-09-30 12:05:50 UTC
(In reply to comment #7)
> the "cannot import anything" problem appears to be fixed.
>...
> current master improves over 3.6 branch because the first column
> is no longer excessively wide, however the table is still too wide
> to fit.

In 4.1.1.2 the left RESPONSE STRATEGIES column of the table is still to wide to fit the document. Other stuff is fine.

Alternative solution is, right click the left column and clict to "Column - Optimal Width" and it is identical to Word :)

Best regards,
Zeki
Comment 9 Zeki Bildirici 2013-09-30 12:06:32 UTC
Sorry it should be the *right column :)
Comment 10 Björn Michaelsen 2014-02-28 12:45:53 UTC
Bulk change: Bibisected bugs can be assumed to be regressions.
Comment 11 Michael Stahl (allotropia) 2014-02-28 12:50:22 UTC
removing erroneously added "regression", see comment #7
Comment 12 tommy27 2014-07-06 07:04:20 UTC
Created attachment 102321 [details]
screenshot in LibO 4.2.4.2

I took a screenshot of the .docx document as it looks opened in LibO 4.2.4.2 (the same look appears in end of june 4.4 master).

please upload a screenshot of the same .docx opened in MS Word so we can better depict which are the residual inconsistencies apart from the obvious last column excessive width and out of bounds issues
Comment 13 Xisco Faulí 2014-07-30 09:17:19 UTC
According to comment 7 this isn't a regression, thus remove bibisected35 bibisected35older from whiteboard
Comment 14 Matthew Francis 2015-04-10 08:10:02 UTC
Created attachment 114710 [details]
PDF printed from Mac Word 2011
Comment 15 Matthew Francis 2015-04-10 08:13:28 UTC
As also commented above, the behaviour of this has improved since 3.3, but the essential issue that the table is too wide dates back to before LO.

-> Version: Inherited from OOo
Comment 16 Matthew Francis 2015-04-10 10:58:09 UTC
*** Bug 60952 has been marked as a duplicate of this bug. ***
Comment 17 Matthew Francis 2015-04-10 11:17:36 UTC
*** Bug 79722 has been marked as a duplicate of this bug. ***
Comment 18 Matthew Francis 2015-04-10 12:40:27 UTC
*** Bug 62026 has been marked as a duplicate of this bug. ***
Comment 19 tommy27 2016-04-16 07:27:22 UTC Comment hidden (obsolete)
Comment 20 Carlos Roberto 2016-04-16 13:00:38 UTC
This Bug and Bug 60952 is still on Windows 10 - 64 bits with:

Versão: 5.0.5.2
ID de compilação: 55b006a02d247b5f7215fc6ea0fde844b30035b3
Local: pt-BR (pt_BR)

Versão: 5.1.2.2
ID de compilação: d3bf12ecb743fc0d20e0be0c58ca359301eb705f
Threads da CPU:4; Versão do SO: Windows 6.2; Realizador da interface: padrão; 
Local: pt-BR (pt_BR)
Comment 21 Cor Nouws 2016-08-29 12:45:12 UTC
*** Bug 101767 has been marked as a duplicate of this bug. ***
Comment 22 Cor Nouws 2016-08-29 12:46:36 UTC
referencing Bug 62293 - RTF: Table going outside the page and dumping remaining cells (same issue for rtf)
Comment 23 Cor Nouws 2016-09-01 10:05:54 UTC
In Version: 5.3.0.0.alpha0+
Build ID: c780c6726dca5e2fe33297e44f25ae3e00703294
the tables nicely show 5 columns as in the pdf attached in comment #14, but stil have a phantom column F and G (off page..)
Comment 24 QA Administrators 2017-12-08 08:07:05 UTC Comment hidden (obsolete)
Comment 25 Patrick 2017-12-08 19:02:34 UTC
Versión: 5.3.5.2
Id. de compilación: 30m0(Build:2)
Subproc. CPU: 4; SO: Linux 4.4; Repres. IU: predet.; VCL: kde4; Layout Engine: new; 
Configuración regional: es-ES (es_ES.UTF-8);

The issue is not appearing now, so is solved.

THANK YOU
Comment 26 Uwe Brauer 2017-12-08 20:10:12 UTC
Created attachment 138323 [details]
docx which contains a table which is not correctly displayed in LO 5.4
Comment 27 Uwe Brauer 2017-12-08 20:11:15 UTC
It seems that my comment disappeared. As my attachment shows the bug is 
still present in LO 5.4
Comment 28 Patrick 2017-12-08 20:25:45 UTC
I opened you docx, and can "see" (cause it have no line borders) the table and is out of bounds, but I openen the files attached by Marten Hennekam and tables are now just where it should. So, maybe your file example is related to another issue, IMHO.
Comment 29 Uwe Brauer 2017-12-08 20:41:17 UTC
Well when I submitted my bug report a while ago somebody 
Classified it as duplicate of this bug which is obviously is not true
So in short LO still has issues with tables I am not sure what is best now.
Leave that bug open? Open another one?
Comment 30 Patrick 2017-12-08 21:07:51 UTC
In your example, you didn't tell us if is an old document created with Word or a new one with Writer ... Even sometimes, when you save a document in native LO format, some issues dissapear. In my case, I'm interested in maintain compatibility with docx documents, so if saving the documento to odt the issue dissapear, I'm happy. But don't know if is your case and your tried what I suggest.
Comment 31 Uwe Brauer 2017-12-09 08:55:53 UTC
Why is this important how this file was generated???

If LO wants compatibility with docx, it must open all docx files without problems. The file in question can be opened without problem in MS word!

But for your curiosity: this file was written in emacs, using its org mode
and then converted via pandoc https://pandoc.org/
to docx. I presume that pandoc satisfies certain (ISO?) rules of the docx syntax.
Comment 32 Patrick 2017-12-09 14:58:41 UTC
Well, I think is important for multiple reasons. As you know, ANY program has bugs, so is important IMHO to trace the document workflow if it's not natively created with the application in which you find some issue. I have some (bad) experiencies about this bugs that make a supposedly well generated file (on distinct formats of data) that really is not well formed and it gave headaches till I discover that were bugs in the software that created the file.

So it's not curiosity, it's simply information that can help developers to consider other variables in the issue (in this case, could be not Writer related really).

Thank you for the info.
Comment 33 QA Administrators 2019-01-18 03:58:53 UTC Comment hidden (obsolete)
Comment 34 Cor Nouws 2019-01-20 21:14:23 UTC
Tested in Version: 6.3.0.0.alpha0+
Build ID: b8e450a54936560cdac00ab4c70ef80c20cfaf99
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2019-01-18_06:04:42
Locale: nl-NL (nl_NL.UTF-8); UI-Language: en-US
Calc: threaded

(In reply to Matthew Francis from comment #14)
> Created attachment 114710 [details]
> PDF printed from Mac Word 2011
Files from comment #1 are OK now. :) !

(In reply to Cor Nouws from comment #22)
> referencing Bug 62293 - RTF: Table going outside the page and dumping
> remaining cells (same issue for rtf)
The table from that bug is not displayed ok.

(In reply to Uwe Brauer from comment #26)
> Created attachment 138323 [details]
> docx which contains a table which is not correctly displayed in LO 5.4
But this table is not displayed correctly.
@oub.oub.oub@gmail.com : you may want to resurrect the orig bug report?
Comment 35 Uwe Brauer 2019-01-22 14:43:30 UTC
I upgraded to LO 6.1.4.2 and the table is *still* not displayed correctly
Comment 36 Uwe Brauer 2019-01-22 14:46:05 UTC
Created attachment 148521 [details]
screenshot of how LO display  incorrectly a table in a docx document

screenshot of LO 6.1.4.2 still showing the bug
Comment 37 Cor Nouws 2019-01-22 15:19:43 UTC
(In reply to Uwe Brauer from comment #35)
> I upgraded to LO 6.1.4.2 and the table is *still* not displayed correctly
For me. 6.1.x is downgrading ;)
But serious: you may want to check a daily. And of course 6.2.0.1.
Possibly if we know the fix/dev, a backport can be done?
Comment 38 Uwe Brauer 2019-01-22 15:52:18 UTC
6.1.4.2 is the official version, not something experimental. I would appreciate a link to the version you are using
Comment 39 Uwe Brauer 2019-01-22 16:07:17 UTC
I managed to download 6.2.0.2 it still does not work.
I attach screenshots. I can send you the docx offline if you want.
Comment 40 Uwe Brauer 2019-01-22 16:09:04 UTC
Created attachment 148522 [details]
table still not correctly displayed in 6.1.0.2 width needs to be set to automatic
Comment 41 Cor Nouws 2019-01-22 21:07:57 UTC
(In reply to Uwe Brauer from comment #40)
> Created attachment 148522 [details]
> table still not correctly displayed in 6.1.0.2 width needs to be set to
> automatic
Hi Uwe,
Thanks. But that is not the document from the bug report, isn't it?
(not the title of this bug says "particular")
I notice other documents too that still have the problem (see comment #34).
There are many types of tables and shitty ;) (sorry) stuff out there..
Can you create a new report for your file?
Thanks - Cor