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

2019-04-13 17:09发布

问题:

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.