Print on only last row on table in the current page

0

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: 2 months 3 weeks ago

4 Answers:

0

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

hozawa's picture
45009
Joined: Apr 24 2010 - 4:31pm
Last seen: 1 month 1 week ago
0

@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: 2 months 3 weeks ago
1

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
1622
Joined: Jul 19 2006 - 5:58pm
Last seen: 2 days 13 hours ago
1

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
45009
Joined: Apr 24 2010 - 4:31pm
Last seen: 1 month 1 week ago
Feedback
randomness