Creating doc or docx file [closed]

4

I wanted to know if there is any lib capable of creating a doc or docx file straight from an android app. I've tried apache poi, but it does not work. I'm using android studio. I have tried in many ways but I can not, if anyone can help me thank you.

    
asked by anonymous 02.02.2016 / 07:01

1 answer

3

You will not find anything too chewed.

Manipulating the document directly in XML

However, depending on the purpose, if it is something simple like adding a small text to an existing file, this can be done by modifying the XML directly.

The internal format of the DOCX files is basically a ZIP with other files inside, and the text document is nothing more than an XML.

This article teaches you how to explore and manipulate a document in this way.

Based on this, you just have to define what information you want to manipulate, create a template file, look at the XML, and create a routine to automate manipulation.

Using a specialized library

If what you need is more complex, eg generating reports or exporting documents with multiple elements, one solution is to get a library like Aspose.Words for Android , a specialized product for this type of operation and can provide the support you need for your needs.

    
03.02.2016 / 01:56