Reports rendering differently

Stimulsoft Reports.NET discussion
Post Reply
jmiller
Posts: 91
Joined: Mon Sep 20, 2010 12:18 pm

Reports rendering differently

Post by jmiller »

I have a report which appears to be rendering differently depending on the number of data rows. Here is an outline of the pages with the problem.
Page1
Group Header (used to group master data together)
Data band
Sub report
Sub Report (contains detail data as well as master data)

I sized the sub-report so that I expect at most 3 rows to be rendered. For data that has 3 detail records it displays all 3 on the page as expected. However, when I add a 4th detail record, I get 2 full records, part of the 3rd, and then the rest to next page. I've included pdfs, the mrt, the xsd, and xml. The xml data has the 4th detail record commented out.
Attachments
1184.PaymentCoupon.mrt
(55.14 KiB) Downloaded 241 times
1183.SampleCouponData.xml
(2.78 KiB) Downloaded 189 times
1182.Coupon.xsd
(2.89 KiB) Downloaded 188 times
1181.BadCoupons.pdf
(110.16 KiB) Downloaded 833 times
1180.GoodCoupons.pdf
(108.63 KiB) Downloaded 262 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Reports rendering differently

Post by Alex K. »

Hello,

In this case, it occurs due to using Sub-Report. Since sub-report is rendered on a single page of infinite length, and then split, then the CanBreak property is not working. Alternatively, we can advise you to move data from the sub-report to the main page.

Thank you.
Attachments
1192.PaymentCoupon_modified.mrt
(55.86 KiB) Downloaded 227 times
jmiller
Posts: 91
Joined: Mon Sep 20, 2010 12:18 pm

Reports rendering differently

Post by jmiller »

That seems to have addressed that problem, but it did bring on another problem. The grouping is no longer working. I have a group header in place so that whenever a different loan condition is met it starts a new page. When I run this report, the two coupons for loan 0000001 and the first coupon for loan 0000002 print on the same page. I need to have the coupons for loan 0000002 start on a new page. I tried using "New Page Before" and "New Page After" in the group band but it does not seem to split it.
jmiller
Posts: 91
Joined: Mon Sep 20, 2010 12:18 pm

Reports rendering differently

Post by jmiller »

Never mind, I just found the problem. The coupon data band was missing the master component. Once I set it, the report works as hoped for.
Thanks for your help.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Reports rendering differently

Post by Ivan »

Hello,

We are always glad to help you.
Let us know if you need any additional help.

Thank you.
Post Reply