Print on only last row on table in the current page

I have multiple tables in a report. When a table stretches to next page,a sentence "to be continued" to be mentioned in the last row of the current page.I don't know how to do this.Surfed a lot and didnt't fine solid stuff on this. Please suggest some ideas to implement it.

senthilkrishnan92's picture
Joined: Nov 18 2018 - 11:25pm
Last seen: 4 years 4 months ago

4 Answers:

This is not possible. You'll need to customize jasperreports library.

hozawa's picture
190407
Joined: Apr 24 2010 - 4:31pm
Last seen: 4 years 3 months ago

@hozawa - Thank you for the clarification.Could you please explain more on the solution? If possible help with some sample on the same.

senthilkrishnan92's picture
Joined: Nov 18 2018 - 11:25pm
Last seen: 4 years 4 months ago

Without a table you could use the default columnfooter band for that purpose, where you just evaluate if the current record count < the total record count. This is what I did in former times for some customers, that also wanted a "hint" on the current page, that some content is wrapped to next page(s). This was working fine... but I never used the table-component for represent the records.

Within a table component it's probably (not tried) impossible (without the - sorry, but "quite senseless" - comment by hozawa to modifiy the (open) source-code of JasperReports library! )

Perhaps there is also a way to incrememt a variable that is evaluated for each  table-row and you could use it "outside" the table for the default column-footer band and "redesign" a  "fake table row" (some borders etc around a textfield) with your static text "to be continued" !??! Just give it a try!

hth + regards

C-Box

C-Box's picture
23949
Joined: Jul 19 2006 - 5:58pm
Last seen: 3 weeks 5 days ago

Sorry, I'm waiting for Teodord to approve pull request to add empty rows to table component. You'll have to wait until that is resolved because it would cause a source conflict otherwise.

 

hozawa's picture
190407
Joined: Apr 24 2010 - 4:31pm
Last seen: 4 years 3 months ago
Feedback