Jump to content
We've recently updated our Privacy Statement, available here ×

html output size


iamsuperman

Recommended Posts

  • 3 weeks later...
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

 

We have a web reporting project where this was an issue, this solution may not work for you but it worked fine for us because our IT department forces everyone to use internet explorer. Our report output is thrown into an iFrame, in IE there is a style attribute style="zoom:125%". We also hooked this attribute to a slider in order to allow the user to control the zoom level.

Hope this helps. The only side effect that we experienced is that the scroll bars also resize, but thats really no biggie...

Clark

Link to comment
Share on other sites

I would say this is a bug in the HTML exporter. Other formats use points as font metric, but the HTML exporter uses the report default size unit (usually defined in pixels). If you choose point as report size unit, table sizes etc become way to large, and again deviates from other output formats.

 

Our solution for our web project deployment has been to modify and override the HTML exporter class (JRHtmlExporter.java), and force JR to use points as font metric and pixels otherwise. IMO this should be the default behavior for HTML output. Won't show correctly in ireport though, unless you modify and build jasperreports.jar from source. To much hassle for me, particularily with the frequent upgrades.

 

 

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...