Embedding Office files (.doc, .ppt, .xls) in my Android App

﹥>﹥吖頭↗ 提交于 2020-01-01 19:17:39

问题


Is there a way to embed any kind of a viewer (for exapmle, QuickOffice Viewer) inside an Android App, in order to view/show/edit Documents such as .docx, pptx, xlsx, etc. (Word, Excel, PowerPoint files) ?

Any SDK or any API to present those without leaving to another app ?

A.K.A I don't want my files & data to leave my app, but I want them be presented to the user :)


回答1:


There is Apache POI.

The Apache POI Project's mission is to create and maintain Java APIs for manipulating various file formats based upon the Office Open XML standards (OOXML) and Microsoft's OLE 2 Compound Document format (OLE2).

Then, there is Aspose which offers APIs to work with MS Office and other documents like PDF, etc.




回答2:


Unfortunately there are no such libraries which can embed these documents in your app while you may create your own Like for viewing PDF Java's iText Library will be perfect and similarly for others.



来源:https://stackoverflow.com/questions/25486436/embedding-office-files-doc-ppt-xls-in-my-android-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!