I've made some applications,see the attachment jpoo.tersus as a demo example.
You need OpenOffice installed (see note in the project)
The application-logic is in the toDoc button/Type Doc/Footer/OK
For more information you can contact me offline (email@example.com)
For best results, use the Firefox browser..