使用poi生成word文档出错是怎么回事呢?各位大神请指教一下

图片说明
图片说明
The supplied data appears to be in the Office 2007+ XML. You are calling the part of POI that deals with OLE2 Office Documents. You need to call a different part of POI to process this data (eg XSSF instead of HSSF)
错误详情,谢谢

你调用的方法是用来支持OLE文档的,而处理的数据是XML格式。所以不支持

你用的是HSSF版的类,你需要用XSSF,前者是针对Office 2003的,后者才是针对2007以上的。