How to Create a Jasper Report in NG?

Forum to discuss the new web client version of Servoy.

How to Create a Jasper Report in NG?

Postby john1598360627 » Wed Apr 28, 2021 1:10 am

I'm curious what the proper procedure is with creating a PDF using Jasper Report. I tried to use code made for the old Web Client, but for some reason it gives an error when it's run in NG Client.

RMI
Is jasperPluginRMI still supported in the NG Client? For example, this should work right?

Code: Select all
var bytes = plugins.jasperPluginRMI.runReport( Foundset, Report_Name, null, plugins.jasperPluginRMI.OUTPUT_FORMAT.PDF, Report_Arguments


VERSIONS
My Servoy Developer Version: 2020.12.1.3623

My Jasper Report Version: 6.2.0
john1598360627
 
Posts: 30
Joined: Tue Aug 25, 2020 3:03 pm

Re: How to Create a Jasper Report in NG?

Postby mboegem » Wed Apr 28, 2021 2:38 pm

Hi,

what happens if you change it to this? (3rd parameter set to 'true')
Code: Select all
var bytes = plugins.jasperPluginRMI.runReport( Foundset, Report_Name, true, plugins.jasperPluginRMI.OUTPUT_FORMAT.PDF, Report_Arguments)
_____________________
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance SAN Developer

Image
User avatar
mboegem
 
Posts: 1573
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: How to Create a Jasper Report in NG?

Postby john1598360627 » Thu Apr 29, 2021 2:16 am

Found out what the problem was, I needed to update my Jasper Reports.

https://github.com/Servoy/servoy_jasper ... tag/6.12.2

6.2.0 to 6.12.2, now no more error and it can actually generate it. Cheers
john1598360627
 
Posts: 30
Joined: Tue Aug 25, 2020 3:03 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 1 guest