Jump to content
Changes to the Jaspersoft community edition download ×

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


lupinus97

Recommended Posts

help,

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);

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...