Jump to content
Changes to the Jaspersoft community edition download ×

anila

Recommended Posts

I have many reports in my project. I need to change the font that is displayed in the report. My .jrxml files contain about 20000 lines. It is difficult for me to change <font> tag for text element in all the .jrxml files. Is there a way that i can change the font of my reports without changing the .jrxml files??

I tried to use setFont() method on JasperViewer object. But it didnot work.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

What about a small Java app that:

  1. load all your designs,
  2. parses each JasperDesign Object,
  3. create a new Style with your wanted font
  4. set this new Style to all textelements
  5. save the JasperDesign to JRXML

 

so you could later change the font again with just ONE statement for each JasperDesign

The best thing would be a external Style - but as I've never done this before, I can't give you a hint, but perhaps anyone else!??  :-)

 

hth

C-Box

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...