Apache OpenOffice (AOO) Bugzilla – Issue 102092
WW8: exported complex tables lead to hanging Word 2003
Last modified: 2017-05-20 11:33:26 UTC
The attached odt file, once exported as .doc by OO.o 3.1, can not be opened by Word 2000. It worked fine in OO.o 3.0
Created attachment 62392 [details] Test case
Created attachment 62393 [details] Broken .doc export
MRU->HBRINKM: export the attached document and try to open in Word 2000 -> it will loop. Even Word 2003 behaves a little funny - it will show some flickering when scrolling through this document. Can also confirm, that this worked with OOo 3.0.
*** Issue 109838 has been marked as a duplicate of this issue. ***
Analysis: Tried with DEV300_m103. Word 2000 loads written file fine. Word 2003 hangs after loading.
Analysis: The table named "Remarques" is an old style ODT-table. It consists of single-cell rows which are split in two vertical sub-cells. Each right cell of those pairs of cells are split again into four horizontal cells. The first row of the table is set to repeat on each page. In Word the table is organized differently. A row from the ODT-table is represented by four rows in Word. The first cells of the four rows are merged vertically to represent the left cell of the first splitting (left/right) in the ODT. Word can only allows to repeat the first row of a table. Hence, there is no matching representation for repeating the first row of "Remarques".
Analysis: Removing the check-boxes does not alter Word 2010's behavior.
Analysis: 1. Correction: Word can indeed flag multiple table rows as repeating table header. 2. When using the Writer layout to translate a complex table to Word's table structure (WW8TableInfo::processSwTableByLayout), it is not enough to use the upper y-coordinate as a sort criteria for finding the rows. One has to use a tuple (<page number>, <y-coordinate>) as the sort criteria, where <page number> is the primary sort key and <y-coordinate> is the second. Implementing this leads to the correct table structure, but still does not cure the hanging. However, if one removes the table from the headers, the hanging disappears.
Reset assigne to the default "issues@openoffice.apache.org".