Apache OpenOffice (AOO) Bugzilla – Issue 103374
WW8: Exporting a table with more than 12 columns to winword 97 (.doc) becomes corrupt
Last modified: 2013-08-07 14:44:00 UTC
This is similar to issue 101472 but it exists in OOo 3.1. Steps: 1) Create a new Text document in Writer. 2) Create a table with 13 columns and 1 row. 3) Save the file as a word 97 .doc file. 4) Try to open the .doc file in word viewer 2003, it will say the table is corrupt and can't display it properly.
Created attachment 63409 [details] ODT file containing a table with 13 columns
Created attachment 63410 [details] corrupt winword 97 file
MRU->HBRINKM: odd thing. Having a 13-columns table and exporting into WW8 format, WW will not be able to display the table correctly anymore, Was OK in OOo 3.0. 12 columns will be OK, BTW...
This issue is still present in OOo-Dev_DEV300_m53_Win32Intel version.
added WW8 prefix to summary
pflin -> hbrinkm, I have a look at this issue, it seems the paragraph style of the table( especially for the table paragraph mark in the end of the line ) refers to a wrong style id. In the attached experimental patch, I set the style id as 0x00, this issue doesn't happen. But I don't think this patch is inaccurate to fix. hbrinkm, Any good idea for this issue?
Created attachment 64471 [details] patch for experimental fix
*** Issue 105969 has been marked as a duplicate of this issue. ***
Further investigation reveals that indeed the relevant difference between current output of OOo and the output of Word 2007 is the written style id. OOo writes the id taken from m_rWW8Export.nStyleBeforeFly, Word 2007 writes 0. However I have to look into the history to find out why OOo refers to nStyleBeforeFly.
*** Issue 105268 has been marked as a duplicate of this issue. ***
*** Issue 104017 has been marked as a duplicate of this issue. ***
nominated as 3.2 blocker
Fixed in CWS hb32showstoppers2 Sending ww8atr.cxx Committed revision 277272.
ready for QA
Verified fix in CWS hb32showstoppers2.
*** Issue 107906 has been marked as a duplicate of this issue. ***
Checked fix in OOo 3.2 and DEV300m77.