iamsuperman Posted October 11, 2008 Share Posted October 11, 2008 Hi,I'm building a report and I have a problem with the output size of HTML, pdf and excel are great, but HTML is too small, unreadable small.Is there a way to zoom just the HTML output in say 200% (so the width of the html report will be the width of the screen)?Thanks. Link to comment Share on other sites More sharing options...
cmatthews Posted October 30, 2008 Share Posted October 30, 2008 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 More sharing options...
jonnyfrastovner Posted October 31, 2008 Share Posted October 31, 2008 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 More sharing options...
lucianc Posted October 31, 2008 Share Posted October 31, 2008 Could you post your HTML exporter changes as a patch? We will analyze it and make the changes to the core code to fix the HTML size problem..Thank you,Lucian Link to comment Share on other sites More sharing options...
jonnyfrastovner Posted November 3, 2008 Share Posted November 3, 2008 I posted the code as requested, and assigned it to you. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now