Description: 使用poi生成的word文档提示打不开,某些数据格式可能导致文档结构错误,其他工具可以打开文档 Steps to Reproduce: 1.poi生成的word文档,文档里面有表格数据 2.无法打开提示 3.打开文件时发生了错误。可能是由于文件内容不正确。 错误详情: SAXException: [word/document.xml line 2]: unknown error 继续导入可能会导致数据丢失或损坏,并且程序可能会不稳定或崩溃。 要忽略错误,并继续载入文件吗? 在 [mscx_uno bridge error] UNO type of C++ exception unknown: "o3tl.divide_by_zero", RTTI-name=".?AUdivide_by_zero@o3tl@@"! SAXParseException: '[word/document.xml line 2]: unknown error', Stream 'word/document.xml', Line 2, Column 28860(row,col) 处发现文件格式错误。 Actual Results: 在 [mscx_uno bridge error] UNO type of C++ exception unknown: "o3tl.divide_by_zero", RTTI-name=".?AUdivide_by_zero@o3tl@@"! SAXParseException: '[word/document.xml line 2]: unknown error', Stream 'word/document.xml', Line 2, Column 28860(row,col) 处发现文件格式错误。 Expected Results: 在 [mscx_uno bridge error] UNO type of C++ exception unknown: "o3tl.divide_by_zero", RTTI-name=".?AUdivide_by_zero@o3tl@@"! SAXParseException: '[word/document.xml line 2]: unknown error', Stream 'word/document.xml', Line 2, Column 28860(row,col) 处发现文件格式错误。 Reproducible: Always User Profile Reset: No Additional Info: [Information automatically included from LibreOffice] Locale: zh-CN Module: StartModule [Information guessed from browser] OS: Windows (All) OS is 64bit: no
Google translate: Description: The word document generated by poi can't be opened, some data formats may cause the document structure error, other tools can open the document Steps to Reproduce: 1. The word document generated by poi has table data in the document 2. Unable to open the prompt 3. An error occurred while opening the file. Probably due to incorrect file content. Error details: SAXException: [word/document.xml line 2]: unknown error Continuing to import may result in data loss or corruption, and programs may become unstable or crash. Do you want to ignore the error and continue loading the file? In [mscx_uno bridge error] UNO type of C++ exception unknown: "o3tl.divide_by_zero", RTTI-name=".?AUdivide_by_zero@o3tl@@"! SAXParseException: File format error found at '[word/document.xml line 2]: unknown error', Stream 'word/document.xml', Line 2, Column 28860(row,col). Actual Results: In [mscx_uno bridge error] UNO type of C++ exception unknown: "o3tl.divide_by_zero", RTTI-name=".?AUdivide_by_zero@o3tl@@"! SAXParseException: File format error found at '[word/document.xml line 2]: unknown error', Stream 'word/document.xml', Line 2, Column 28860(row,col). Expected Results: In [mscx_uno bridge error] UNO type of C++ exception unknown: "o3tl.divide_by_zero", RTTI-name=".?AUdivide_by_zero@o3tl@@"! SAXParseException: File format error found at '[word/document.xml line 2]: unknown error', Stream 'word/document.xml', Line 2, Column 28860(row,col).
@郭生, Please attach a sample file that demonstrates the error.
Created attachment 182483 [details] like this
Confirmed in 7.4.0.2.
I can no longer reproduce the error in 7.4 after: https://git.libreoffice.org/core/+/02de07ffd65d40d26bfc15783ec25030117d5761 author László Németh <nemeth@numbertext.org> Thu Jan 05 10:21:10 2023 +0100 committer Xisco Fauli <xiscofauli@libreoffice.org> Tue Jan 10 11:54:19 2023 +0000 tree a56fbc84205a93a9a1c6b66aa1aca3ac7439b21f parent 8b69b189726365411772d098e504acd90d1606e9 [diff] tdf#131203 DOCX import: fix lost table when w:tblGrid is missing *** This bug has been marked as a duplicate of bug 131203 ***