[#11751] - jr:table doesn't print when you have just enough items to change page

Category:
Bug report
Priority:
Normal
Status:
New
Project: Severity:
Major
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
0

It seems that on some cases, when using splitType="Prevent" on the band, jr:table doesn't print the a table. It seems the when having a quantity of elements that would make the table change the page, it changes the page but don't print the table.

I created a minimal working example here of the case:

https://github.com/Megamiun/jasper-reports-bug-report

After running the main function, it will create 3 pdfs on out/, one for the error case(with 18 items), another for the case that the result is on first page(with 17 items), another on second(with 19 items).

AttachmentSize
PDF icon error.pdf1.9 KB
table
g.rezende.monteiro's picture
Joined: Feb 13 2019 - 7:55am
Last seen: 4 weeks 1 day ago

7 Comments:

#1
AttachmentSize
PDF icon secondpage.pdf2.05 KB
#2
AttachmentSize
PDF icon error.pdf1.9 KB
#3
AttachmentSize
PDF icon firstpage.pdf1.54 KB
#4

It seems the problem isn't so simple. Did here with the detailCell with height 40 and there is no occurrence of this problem.

#5

It seems that any example that the table finishes on the current page but the band needs to change to the other page, the table will not be printed

#6

Example on github updated, now with 21 items it appears on first page, from 22 to 25 it doesn't appear, on 27 it appears on second page.

#7
  • Severity:Minor» Major
Feedback
randomness