1

I try to write down the result of the POI unit test at: code here, by adding the line

daDoc.write(new FileOutputStream("C:\\wordtest.doc"));

to the end of the method testRangeReplacementAll. The new document is corrupt when I try to open it with word 2003.

Any suggestions to fix this?

4

1 回答 1

1

我至少会尝试缩小范围,因为该测试会做很多事情。

  1. 你能在 Word 2003 中打开原始文件吗?
  2. 您可以打开文件并立即重新另存为另一个而不进行任何替换。是否在 Word 2003 中打开?
  3. 你能至少更换一次吗?
于 2009-07-09T10:08:11.910 回答