Issue 102092 - WW8: exported complex tables lead to hanging Word 2003
Summary: WW8: exported complex tables lead to hanging Word 2003
Status: ACCEPTED
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: OOo 3.1
Hardware: Unknown All
: P3 Trivial with 1 vote (vote)
Target Milestone: 3.4.0
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: regression
: 109838 (view as issue list)
Depends on:
Blocks:
 
Reported: 2009-05-20 14:18 UTC by nmailhot
Modified: 2017-05-20 11:33 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Test case (23.42 KB, application/vnd.oasis.opendocument.text)
2009-05-20 14:19 UTC, nmailhot
no flags Details
Broken .doc export (170.50 KB, application/msword)
2009-05-20 14:19 UTC, nmailhot
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description nmailhot 2009-05-20 14:18:30 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
Comment 1 nmailhot 2009-05-20 14:19:21 UTC
Created attachment 62392 [details]
Test case
Comment 2 nmailhot 2009-05-20 14:19:56 UTC
Created attachment 62393 [details]
Broken .doc export
Comment 3 michael.ruess 2009-05-20 17:05:05 UTC
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.
Comment 4 michael.ruess 2010-03-05 14:46:33 UTC
*** Issue 109838 has been marked as a duplicate of this issue. ***
Comment 5 openoffice 2011-04-04 11:47:27 UTC
Analysis: Tried with DEV300_m103. Word 2000 loads written file fine. Word 2003 hangs after loading.
Comment 6 openoffice 2011-04-04 13:38:23 UTC
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".
Comment 7 openoffice 2011-04-07 14:31:19 UTC
Analysis: Removing the check-boxes does not alter Word 2010's behavior.
Comment 8 openoffice 2011-04-12 15:08:31 UTC
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.
Comment 9 Marcus 2017-05-20 11:33:26 UTC
Reset assigne to the default "issues@openoffice.apache.org".