Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

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

 
Bartender
Posts: 1700
17
  • 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
 
If you believe you can tell me what to think, I believe I can tell you where to go. Go read this tiny ad!
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!