Showing a Jasper report directly in a form

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

yeah, it would be nice, of we could use the jasper-viewer, as a bean on our form! (at least for smart-client!)
Indeed not possible right now.

Did you already filed a request for that on Servoyforge.net?

https://www.servoyforge.net/projects/se … perreports

Created a feature request:

perhaps we it’s easy to implement…?

schoby:
Created a feature request:

Feature #226: Viewer bean for viewing Jasper reports inside Servoy forms - Servoy JasperReports Plugin - ServoyForge

perhaps we it’s easy to implement…?

Hi,

We are looking into this.

Regards,
Andrei

just for all other readers :

The Feature is implemented
https://www.servoyforge.net/projects/se … orts/files