Jasper Report Question..

Hi,
Is there a way to suppress a new window popup in webclient to display the jasper report. I just want to return the byte array from the plugin to attach on a email.

Below always opens a new window

var byteArr = plugins.jasperPluginRMI.jasperReport("server", rptName, null, "pdf", $parameters);

Try specifying an output file name instead of null. Also use the new type: OUTPUT_FORMAT.PDF

the latest version of the plugin is like this:

var result = plugins.jasperPluginRMI.runReport(source(serverName|foundset|dataset), reportFileName , exportFileName / boolean showPrintDialog / printerName, outputFormat, parameters, [locale], [moveTableOfContents]): Array<byte>

Hi Thomas,
Specifying the name worked a treat. Thank you :D