Only the first page of the sub-report will be printed. Why?


Master - Report of the detailed structure.

Details (sub-reports) are printed once and are not printed.

How do I print more detail repeatedly?

When using sql, preview works normally.(in jasperstudio)

During the web test, only the first page of the sub-report you placed on the main page is output.

Subpages are not repeated on the Web.

A filter was used in the sub-report.
Filter expression : $ P {bkNo}. equals ($ F {bko})

The sources are as follows :

List<BookingNoticeModel> reportBookingNotices, List<BookingCntrModel> reportBookingCntrs;

// get datasource 
JRDataSource bookingNoticeDs = new JRBeanCollectionDataSource(reportBookingNotices);
JRDataSource bookingCntrDs = new JRBeanCollectionDataSource(reportBookingCntrs);

// set datasource
Map<String, Object> parameters = new HashMap<String, Object>();
Parameters. put (" su bReportDir ", reportPath ") ;
parameters.put("bookingCntrDs", bookingCntrDs);

// fill the report with data source objects
JasperPrint jasperPrint = JasperFillManager.fillReport(report, parameters, bookingNoticeDs);

lupinus97's picture
Joined: Mar 22 2016 - 1:50am
Last seen: 8 months 1 week ago

0 Answers:

No answers yet