Sriman
Sriman

Reputation: 788

Create an output document from Android App

I have an android app where I will be capturing various information in different forms and storing into the SQL lite database for tracking/viewing purposes. I want to give the option of exporting the information into a RTF/PDF/Doc and give the option of sending it thru email.

I looked at various similar questions posted here earlier but didnt get a definitive answer. I saw the Android PDF Writer library http://sourceforge.net/projects/apwlibrary/ but this seems very basic. I considered iText but I think there would be issues with licensing if in future I want to sell this app..

Basically I want to define a template document with a structure that will be copied and content added to it based on what the user wants to export...

Any help is greatly appreciated...

Upvotes: 2

Views: 1730

Answers (2)

Sriman
Sriman

Reputation: 788

I wanted some elegant solution where I can store a template in the assets folder and replace whatever I want to create the output document. Finally I went with html. I created a html template and put it into the assets folder. After that it was as simple as read assets, read db, do string.replaceall and write the output html and email it out.....

Upvotes: 3

Anurag Ramdasan
Anurag Ramdasan

Reputation: 4340

OpenOffice.org's Universal Network Objects (UNO) interface to programmatically generate MS-Word compatible documents (*.doc), as well as corresponding PDF documents.

its basically java so it should work on android too.

Upvotes: 0

Related Questions