Page 1 of 1

Maximize the Jasper Report Viewer ?

PostPosted: Tue Sep 20, 2016 4:53 pm
by Bernd.N
When launching the Jasper Report Viewer (output format plugins.jasperPluginRMI.OUTPUT_FORMAT.VIEW), the report view window is quite small.
Is there a way to launch it maximized?

Re: Maximize the Jasper Report Viewer ?

PostPosted: Wed Sep 21, 2016 12:10 am
by mboegem
There used to be a bean for earlier version of JR.
That way you could create your own viewer using a form and being in full control of the styling, size, etc.

Re: Maximize the Jasper Report Viewer ?

PostPosted: Thu Sep 22, 2016 7:26 pm
by kwpsd
Bernd,

I think this is what you want:

Code: Select all
plugins.jasperPluginRMI.JR_SVY_VIEWER_DISPLAY_MODE.FIT_PAGE


I hope this helps!

Re: Maximize the Jasper Report Viewer ?

PostPosted: Fri Sep 23, 2016 5:57 pm
by Bernd.N
Hi Kim,
thanks for the hint. We tried it, but could not see a difference. We also used .FIT_WIDTH and .ACTUAL_PAGE_SIZE.

We also touched the plugin first, like a thread recommended, by a
var sTest = plugins.jasperPluginRMI.relativeReportsDirectory

Is there something else we need to consider?

Re: Maximize the Jasper Report Viewer ?

PostPosted: Fri Sep 23, 2016 7:35 pm
by kwpsd
My apologies, Bernd. I was thinking you were using the Jasper preview bean when I answered. We use the Jasper preview bean (Smart client only) with the following code:

Code: Select all
elements.bean_jasper_preview.displayMode = plugins.jasperPluginRMI.JR_SVY_VIEWER_DISPLAY_MODE.FIT_PAGE


and, it works as expected. Give the Jasper preview bean a try!