Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

How to remove clickable elements around text fields in JasperReports' RTF output?

Posts: 1684
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you output a report using Jasper Reports to RTF, it outputs clickable text areas around text fields in the RTF.

These clickable items makes the RTF file unusable as a word document (you can't click CTRL-A and select the entire document, for example) and, worse, for larger reports, these elements appear to consume a lot of resources.

Resource show-stopper -- > A 1500 page RTF generated report is blank after the first 1000 or so pages!

Word also chokes trying to open and paginate this file.

I'm hopeful, if I can just output RTF Text using Jasper Reports, I can get back a usable document and consume less resources.

I'm also experimenting with just using iText by itself to generate the RTF, but that means I would need to re-create Jasper's functionality that's currently being taken for granted.

Any ideas on how to configure Jasper so it just outputs the text formatted as in its iReport JRXML file, but NOT include these crazy regions around the actual text?

Thanks in advance.

- Mike
Hey cool! They got a blimp! But I have a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!