Maximize the Jasper Report Viewer ?

Questions and answers on developing, deploying and using plugins and JavaBeans

Maximize the Jasper Report Viewer ?

Postby Bernd.N » Tue Sep 20, 2016 4:53 pm

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?
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 544
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Re: Maximize the Jasper Report Viewer ?

Postby mboegem » Wed Sep 21, 2016 12:10 am

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.
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image

Partner of Tower - The most powerful Git client for Mac and Windows
User avatar
mboegem
 
Posts: 1743
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Maximize the Jasper Report Viewer ?

Postby kwpsd » Thu Sep 22, 2016 7:26 pm

Bernd,

I think this is what you want:

Code: Select all
plugins.jasperPluginRMI.JR_SVY_VIEWER_DISPLAY_MODE.FIT_PAGE


I hope this helps!
Kim W. Premuda
San Diego, CA USA
User avatar
kwpsd
 
Posts: 687
Joined: Sat Jul 28, 2007 6:59 pm
Location: San Diego, CA USA

Re: Maximize the Jasper Report Viewer ?

Postby Bernd.N » Fri Sep 23, 2016 5:57 pm

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?
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 544
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Re: Maximize the Jasper Report Viewer ?

Postby kwpsd » Fri Sep 23, 2016 7:35 pm

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!
Kim W. Premuda
San Diego, CA USA
User avatar
kwpsd
 
Posts: 687
Joined: Sat Jul 28, 2007 6:59 pm
Location: San Diego, CA USA


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 8 guests