Apache OpenOffice (AOO) Bugzilla – Issue 96307
WW8: MS Word 2003 crash when opening exported writer document (tables)
Last modified: 2017-05-20 11:13:17 UTC
Microsoft Word 2003 (SP2, running on WinXP SP3 32bit), crashes when opening attached document exported from Writer in "Microsoft Word 97/2000/XP" format. When exporting the document in "Microsoft Word 95" format, there are no issues in Microsoft Word 2003 - the document is opened without problems.
Created attachment 58079 [details] OO-File: Word 2003 crash when exported in Word 97/2000/XP format
Created attachment 58080 [details] Exported OO-File in Word 97/2000/XP format, causes crash of Word 2003
Well, when aanother program crashes opening document OOo produced (even if it is the other program's format) it shows a bug in this program. Not it OOo. But let's see what the experts say...
MRU->AMA: could you please have a look whether this is the same root cause as issue 95533?
@mru: It is _not_ OOo that crashes when exporting the file! Rather, Microsoft Word 2003 crashes when trying to open the exported .doc file.
ama->hbrinkm: Please have a look...
I confirm that under W2k and OOo 3.0.1, files with tables and done with a previous version (not sure if OOo 3.0.0 is included or not) make MS Word (2003) crash/hang, trying to repaginate the document. Tried the following: - open a .odt made with 2.4.x with 3.0.1 (with lots of tables) - save as .doc - open with MS Word 2003 -> crash - open that same .odt with 2.4.1 and save as .doc - open with MS Word 2003 -> OK. Tried to reproduce by making a sample file with 2.4.1 then opening it with 3.0.1 and saving as .doc but can't reproduce that. Some specific formatting of tables may trigger that.
This issue has similarities to http://www.openoffice.org/issues/show_bug.cgi? id=98962, although in that issue it is OOO 3.0.1 that crashes when trying to re- open the exported doc file that OOO 3.0.1 created. That issue also involves the exporting of tables.
I think its an OpenOffice table exporter bug (only in 3.0.1). When I export a document with a table, the exporter decrease the first column width with the size of left spacing. If the left spacing is negative, then column size is decreased... If the left spacing of table is more than first column, then Word crash when opening it. OO.o only cut that column.
When saving in doc format and reopening in 3.0.1 the tables do not maintain their size but changes when reopened and in some cases even ends up with parts outside the page. When saving same document in odt this is not the case.
Microsoft Word 2000 and Microsoft Word XP, crashes soever when opening exported documents from Writer in "Microsoft Word 97/2000/XP" format after 3.0.1 upgrade The Problem remain under DEV300m41. Please this is a serious interoperability Problem.
I can confirm this happening to me with OpenOffice 3.0.1 and Word 2003. With me, however, the exported .docs don't crash Word, they just have severely distorted tables. The test case that muddle uploaded neither crashes Word nor causes distortion after resaving within OpenOffice 3.0.1. The .doc I am uploaded does cause distortion, but no crash, after resaved within OpenOffice. As a partial workaround, I have had some success exporting a file with a table from OpenOffice to WordML, opening in Word 2003 and saving as .doc, although some formatting doesn't carry over, but it is essentially the same table. Sometimes though, Word throws the error: "Ambiguous cell mapping encountered. Possible missing paragraph element. <p> elements are required before every </tc>" In which case, it seems you are out of luck.
Created attachment 60412 [details] Somewhat complex Word 2003 table that corrupts after resaving in OO 3.0.1
My tables just seem to disappear in Word format. OO 3.0.1, Win XP SP2
Found a way to reproduce : create a ODT doc, create a table with 3 columns and shift the left side of the first column to the right, then export to Word 97/2000/XP : Word will crash If the first column is not shifted, everything is ok. (attached tableCrashWhenExported.zip contains tableOK.odt and tableBAD.odt)
Created attachment 61216 [details] tableOK is exported without problem, tableBAD crashes word when exported to Word97/2000/XP
I've tried out the two 'crash samples' with OOo 3.1.0 RC2 (WinXP). (1) OO-File: Word 2003 crash when exported in Word 97/2000/XP format (application/vnd.oasis.opendocument.text) - by muddle (2) tableOK is exported without problem, tableBAD crashes word when exported to Word97/2000/XP (text/plain) - by theradio - Saved as .odt [in OOo 3.1.0] - Saved as .doc (MS Word 97/2000/XP) [in OOo 3.1.0] Not any crash when I open the .doc files in MS Word 2000 or the current MS Word Viewer.
Tests with OOo 3.1.0 Win XP: Table Test.doc : saved in odt ok, saved again in .doc, opened with Word2003: no more crash but background colors are not rendered by Word. Reopened with 3.1.0: rendering is ok. Testcase_Word2003-Crash.odt saved in doc, opened with Word2003: no more crash and rendering is perfect in Word. TableBAD.odt (from tableCrashWhenExported.zip) saved in doc, opened with Word2003: no more crash but the left position of the table is not correct in Word. If I was sure that there are other issues about this new behaviour I would propose to close this one but ...
Some experiments with 3.1.1: Making a document based on a template (made in Oct. 2008) and then exporting it in .doc: MS Word 2003 can't edit pages after first one if both a table in main text and in footer. See attachment. Making a document based on a template (made at same time, Oct. 2008) but without tables in the template: export works fine, even if both tables in main text and footer. It seems there is a trouble with tables made with previous versions of OOo when exported to .doc format.
Created attachment 64425 [details] File from old template with tables in footer and main text
Reset assigne to the default "issues@openoffice.apache.org".