Jump to content
Changes to the Jaspersoft community edition download ×

How to scale/zoom report embedded through visualize.js


Go to solution Solved by asimkin,

Recommended Posts

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

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