JasperReports not printing

Hi all,

I got a problem with my JasperReportsRMI

plugins.jasperPluginRMI.runReport(forms.formname.controller.getServerName(), ‘filenamereport.jrxml’, _printer, ‘print’, params) ;
variable _printer = ‘\share\printerA’
On this line of code nothing happens. Nothing is printed.
Cant find an proper error anywhere.

When I change it to
plugins.jasperPluginRMI.runReport(forms.formname.controller.getServerName(), ‘filenamereport.jrxml’, null, ‘view’, params) ;
It nicely return the reportviewer.

Can someone help me out to automatic get the printing working, or what am I doing wrong?

JasperReport plugin version 4.0.1
Servoy 7.3.1
Java version 6 or 7 not 8.

tnx in advance
Derk

Solved it by using:
plugins.jasperPluginRMI.runReport(forms.formname.controller.getServerName(), ‘filenamereport.jrxml’, true, ‘print’, params) ;

Now the only question is if I want to print multiple reports how can I do that with only selecting the printer once.
I worked until I upgraded to 7.3.1

Maybe you have to escape the back slashes in your string var _printer?

var _printer = '\\\\share\\printerA'

Hello Thomas,

That won’t work because I let Java collect the users printers and display those in a dialogbox.
The return value is the name of the selected printer.

Derk