Reports and subreports ireport and netbeans

0

Good afternoon:

I am working with netbeans and ireport, in the attached image I send the report: Plan22T.jasper

reportFile = new File (application.getRealPath ("/ Certifica / Plan22T.jasper"));

This report filled it with a bean: FillBean.LlenaArray list = new FillBean.LlenaArray (); which contains fields such as names, curp, registration.

And then I send the report to call like this:

byte [] bytes = JasperRunManager.runReportToPdf (Report, parameters, new JRBeanCollectionDataSource (list.list (request.getParameter ("registration"))));

UNTIL THERE EVERYTHING WORKS CORRECTLY, THE PDF REPORT IS SHOWN. IN THE BROWSER.

Someone can advise me on the following:

To this Plan22T.jasper report, I need to embed a subreport named SubRep.jasper that I will also fill with a bean: FillBean.LlenaReverso list = new FillBean.LlenaReverso () that contains the qualification, hours and credits fields.

WHAT CODE SHOULD I ADD TO THAT OF THE IMAGE THAT I ATTACH, TO CALL THE SUBREPORT, BECAUSE I ALREADY INSERT THE SUBREPORT IN THE REPORT IN IREPORT BUT WHEN I EXECUTE IT I DO NOT HAVE ANYTHING I WANT TO BELIEVE BECAUSE I DID NOT SEND IT FILL OR SOMETHING SO, IF ANYONE CAN HELP ME ... PORFIS?

    
asked by user74737 07.02.2018 в 21:55
source

0 answers