4
I was wondering if there is any lib able to create a doc or docx file directly from an android app. I’ve tried using apache poi, but it doesn’t work. I’m using android studio. I’ve tried several ways but can’t, if anyone can help me thank you.
4
I was wondering if there is any lib able to create a doc or docx file directly from an android app. I’ve tried using apache poi, but it doesn’t work. I’m using android studio. I’ve tried several ways but can’t, if anyone can help me thank you.
3
You won’t find anything too chewy.
However, depending on the purpose, if it is something simple like adding a small text in an existing file, this can be done by directly modifying the XML.
The internal format of DOCX files is basically a ZIP with other files inside, and the text document is nothing more than an XML.
This article (in English) teaches how to explore and manipulate a document in this way.
Based on this, just define what information you want to manipulate, create a template file, observe XML and create a routine to automate handling of it.
If what you need is more complex, for example, generating reports or exporting documents with multiple elements, one solution is to acquire a library like Aspose.Words for Android, a product specialized for this type of operation and that can provide the necessary support for your needs.
Browser other questions tagged java android
You are not signed in. Login or sign up in order to post.
Look man I did a search and also did not find any lib able to generate file . doc not dude, but there is another way to do but then you would have to contact some php server, then you would send your app information to a php page that would create one. doc and you caught the return by downloading and saving directly on android. I hope I helped, If you find the way to do this directly by android post there for the guys who also have the same doubt.
– Viniam
Have you seen this link ?
– Arubu