I want to know how to export typed strings to a word document file.
The application I’m trying to make should be simple; User has his application on his Android phone and he types in some text.
It will have few PlainText and MultilineText text fields, in which the user will be able to type, whatever he wants.
So, when a user connects his mobile to the computer, he should be able to click some button and ‘generate report’.
That way, all the text he typed in should be transformed into a word doc.
Is there a way of doing this?
You’ll want to use some sort of java library for Microsoft Office. Take a look at Apache POI for this. Here’s an example of using Apache POI.
As a side note, I would also recommend that the user doesn’t have to actually connect their device to the computer, but rather make an export feature which will create the Word Document and they can e-mail it or share it in some other way. This would improve your User Experience 🙂