我有java.lang.IllegalStateException创建一个Word文档 [英] hai i have got java.lang.IllegalStateException an creating an word document
本文介绍了我有java.lang.IllegalStateException创建一个Word文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的朋友,
我正在使用Java Poi创建Word文档,然后出现以下错误
Dear friends,
I am creating word document using java poi then I got below error
java.lang.IllegalStateException: Table Stream '0Table' wasn't found - Either the document is corrupt, or is Word95 (or earlier)
at org.apache.poi.hwpf.HWPFDocument.<init>(HWPFDocument.java:201)
at org.apache.poi.hwpf.HWPFDocument.<init>(HWPFDocument.java:157)
at org.apache.poi.hwpf.jdbc.writeToFile(jdbc.java:64)
at org.apache.poi.hwpf.jdbc.main(jdbc.java:138)
HWPFDocument doc=new HWPFDocument(fs);//when i used this i got error
有人可以帮助我吗?...
感谢和问候
Andavar
can you anyone help me pls....
thanks and regards
Andavar
推荐答案
如果它不是单词的早期版本,我会弯腰说0Table不存在.为什么您认为是这样?
If it''s not an early version of word, I''m going out on a limb and saying that 0Table is not present. Why do you think it is ?
这篇关于我有java.lang.IllegalStateException创建一个Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文