Group Header, Page Break, and Sorting with XML data

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

Group Header, Page Break, and Sorting with XML data

Post by jmiller »

I am trying to create a report using xml data. I want the report to page break when a data value changes. I am having trouble sorting. In the sample data below, I would use as my group header condition. The data that appears in my data band does not stay in the order that it is in the xml file and I can't seem to specify a sort. I want the databand sorted by . Am I doing something wrong?


Doe
John


Doe
Tim


Smith
James


Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Group Header, Page Break, and Sorting with XML data

Post by Ivan »

Hello,

Can you please send us a sample report template for this data?

Thank you.
jmiller
Posts: 91
Joined: Mon Sep 20, 2010 12:18 pm

Group Header, Page Break, and Sorting with XML data

Post by jmiller »

I am attaching the xsd, xml, mrt, and the pdf output I am getting. The data is different than my original post. As you can see in the pdf there are a couple of problems I am having:
1) The first page is blank. It sounds like the "Skip First" property of the group header should address this but it does not.
2) The xml data is already sorted in the order in which it should appear. I just want the page break to occur when the loan number changes. The page break works, but you can see the dates within the loan is now out of order.
Attachments
1125.SampleCouponData.xml
(725 Bytes) Downloaded 436 times
1124.PaymentCoupon.mrt
(8.69 KiB) Downloaded 489 times
1123.Coupon.xsd
(803 Bytes) Downloaded 384 times
1122.Coupon.pdf
(44.21 KiB) Downloaded 413 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Group Header, Page Break, and Sorting with XML data

Post by HighAley »

Hello.
jmiller wrote: 1) The first page is blank. It sounds like the "Skip First" property of the group header should address this but it does not.
Please, try to set "New Page After" property of GroupHeaderBand1 to False.
jmiller wrote: 2) The xml data is already sorted in the order in which it should appear. I just want the page break to occur when the loan number changes. The page break works, but you can see the dates within the loan is now out of order.
In this case you can set the 'Sort Direction' property of the GroupHeaderBand1 component to None or set the sorting order for the CouponData.OnTimeDate in the Databand.

Thank you.
jmiller
Posts: 91
Joined: Mon Sep 20, 2010 12:18 pm

Group Header, Page Break, and Sorting with XML data

Post by jmiller »

Let me start with 2): This appears to be working. I thought for sure that I tried this. I did not set the 'Sort Direction' to None but I was pretty sure I tried to add the OnTimeDate sort in the DataBand. Whenever I added the sort it was removing the Data Source from the data band. Maybe I just did something wrong. It is working now.

1) The 'New Page After' does remove the initial blank page, but now LoanNumber '0000002' is appearing on the same page as '0000001'. I wanted a new page whenever the LoanNumber changed.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Group Header, Page Break, and Sorting with XML data

Post by Alex K. »

Hello,
jmiller wrote:1) The 'New Page After' does remove the initial blank page, but now LoanNumber '0000002' is appearing on the same page as '0000001'. I wanted a new page whenever the LoanNumber changed.
Please set the "New PageBefore" property of the GroupHeader component to true.

Thank you.
Attachments
1127.PaymentCoupon.mrt
(8.57 KiB) Downloaded 445 times
1126.Report.pdf
(44.47 KiB) Downloaded 434 times
jmiller
Posts: 91
Joined: Mon Sep 20, 2010 12:18 pm

Group Header, Page Break, and Sorting with XML data

Post by jmiller »

That worked. Thanks for your help!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Group Header, Page Break, and Sorting with XML data

Post by Alex K. »

Hello,

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

Thank you.
Post Reply