Hi, Rups.
I have an idea to solve your problem.
You can first make report with RAQ Report, and then export the report to text format, or any else format you need. RAQ Report can export report to Word, PDF, Excel, Html,XML format.
You can get the free reporting tool at http://www.raqsoft.com/[/url].
I wish this can help. Good luck.
RAQ Report: Web-based Excel-like Java reporting tool[/url]