jeremy.bradshaw_1 Posted July 3, 2015 Share Posted July 3, 2015 I have a report embedded in a web page bit it has a fixed width of 575px, and the text is too small to see clearly. I thought an embedded report would resize itself into it's container. Is this dependent on how the report is designed?The rendered size does seem to match the 100% size shown if I run the same report in Jasper Reports Server, but does the javascript API offer any control over the zoom?I have fudged it by adjusting the transform scale property of the jrPage table after the report completes, and this works to a point but:a) if the page is resized the report renders back to 100% - AFTER any code I attach to the window resize event.b) interactivity is compromised while the scaled report is shown - eg. if I try to resize a column it shows the original width not the scaled width. Link to comment Share on other sites More sharing options...
hozawa Posted July 6, 2015 Share Posted July 6, 2015 Visualize.js just renders the report in the <div>. You can use jQuery UI to change the effects. Link to comment Share on other sites More sharing options...
Solution asimkin Posted July 8, 2015 Solution Share Posted July 8, 2015 JSFiddle examples below may help you:Disable autoresize and resize report manually - http://jsfiddle.net/6c8mu5my/15/Fit report to container - http://jsfiddle.net/NesterOne/7ChRr/You may need to change URL in the second example. 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