Plugin Jasper 4.0.0b1

Hi

I use Jasper 4.0.0b1 plugin version for print and if specific a printer, only work with the option plugins.jasperPluginRMI.OUTPUT_FORMAT.VIEW.
I select plugins.jasperPluginRMI.OUTPUT_FORMAT.PRINT dosen´t work

If put null on the printer parameter, it work.

This option dosen´t work:

var tipo=plugins.jasperPluginRMI.OUTPUT_FORMAT.PRINT
plugins.jasperPluginRMI.runReport(forms.l_ventas.foundset,‘ticket.jasper’,printer,tipo,param);

(‘printer’ is the selected printer)

And this option work fine:

var tipo=plugins.jasperPluginRMI.OUTPUT_FORMAT.PRINT
plugins.jasperPluginRMI.runReport(forms.l_ventas.foundset,‘ticket.jasper’,null,tipo,param);

Any idea

Thanks

Hi Juan,

For me code as:

var tipo=plugins.jasperPluginRMI.OUTPUT_FORMAT.PRINT;
plugins.jasperPluginRMI.runReport(foundset,'report.jasper','somePrinterName',tipo,param);

works fine.

Do you get any errors in the /path/to/servoy/application_server/servoy_log.txt or in the /path/to/servoy_workspace/.metadata/.log?

Regards,
Andrei

No, no there are nothing in both.

Thanks

Could you please try with a fresh/clean install of the plugin? Just download a fresh drop-in of the plugin and see if this is reproducible.

Hope this helps,
Andrei