我的資產文件夾.docx文件,並使用這部分代碼來讀它如何與Apache POI讀取.DOCX在Android
AssetManager am = context.getAssets();
InputStream is;
is = (InputStream) am.open("amaretti.docx");
XWPFDocument hdoc=new XWPFDocument(OPCPackage.open(is));
這個
和罐子:
poi.jar
poi-ooxml.jar
但顯示我的錯誤:
08-27 18:16:31.660: I/dalvikvm(23221): Could not find method org.openxmlformats.schemas.wordprocessingml.x2006.main.CTDocument1$Factory.newInstance, referenced from method org.apache.poi.xwpf.usermodel.XWPFDocument.onDocumentCreate
我想一些jar或類都丟失。
任何建議都會有用。
在此先感謝
嗨,你可以共享代碼讀取.docx文件在Android? – 2017-06-16 11:08:53