Hello,
I searched the forum a lot but didn’t find a solution for my problem.
So the problem is: I am creating a Jasper report with charts and everything based on a form foundset. I can view this Report in developer (smart and webclient) without problems. The problem is that if I use
plugins.jasperPluginRMI.runReport(forms.customers.controller.getServerName(),'myCustomerReport.jasper',null,'view',{pcustomerid: forms.customers.customer_id});
the report is always opened in an new window. But I want to have the report displayed as a part of my current form.
I made some tries with the pdf bean:
var pdfBytes = plugins.jasperPluginRMI.runReport(forms.customers.controller.getServerName(),'myCustomerReport.jasper', "test.pdf", 'pdf', params);
forms.frmPdfBean.elements.pdfBean.openPdfArray(pdfBytes);
forms.frmPdfBean.elements.pdfBean.decodePage(1);
forms.frmPdfBean.elements.pdfBean.setPageParameters(1.2, 1)
forms.frmPdfBean.elements.pdfBean.repaint();
But still this is not as comfortable as using the normal jasper viewer (No zooming, scrolling …).
So the final question is - is there a way tp show the Jasper Viewer inside my form ? If yes how can I do that ?
Regards
Steffen