Hi ,
I am doing this in the main solution :
var headlessClient = plugins.headlessclient.createClient("ReportGeneration", null, null, null);
if (headlessClient != null && headlessClient.isValid()) {
headlessClient.queueMethod(null, "printReportHeadlessClient", [reportSource,reportName + '.jrxml',null,plugins.jasperPluginRMI.OUTPUT_FORMAT.VIEW,parameters], callback);
}
In the headless client solution (ReportGeneration) :
function printReportHeadlessClient(reportSource,reportName,outputOptions,outputType,parameters) {
plugins.jasperPluginRMI.runReport(reportSource,reportName,outputOptions,outputType,parameters);
}
Please provide some suggestion on this.