Repeat twice a DataBand within a Group

Stimulsoft Reports.NET discussion
Jennypi
Posts: 361
Joined: Mon Nov 17, 2008 7:13 am
Location: France

Repeat twice a DataBand within a Group

Post by Jennypi »

Hi

My report is built like this:
GroupHeaderBand
-DataBand
GroupFooterBand

It shows, for example:
A:
1
2
4
6
B:
2
3
7
9

I would like to repeat the list of records inside the databand, like this:
A :
1
2
4
6
-
1
2
4
6
B:
etc...
I've tried like this:
GroupHeaderBand
-Master DataBand
--Child DataBand with CountData=2
GroupFooterBand
but it shows this:
A:
1
1
2
2
4
4
6
6

How can I do what I want ?

Many thanks!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Repeat twice a DataBand within a Group

Post by Alex K. »

Hello,

It can be done using grouping.
You can use the wizard with two detail bands. For the master band create a data source (for example Data from other datasource), which will contain grouped data only. Detail bands will refer to the basic data source.

Thank you.

Jennypi
Posts: 361
Joined: Mon Nov 17, 2008 7:13 am
Location: France

Repeat twice a DataBand within a Group

Post by Jennypi »

Hi,

Thanks for your reply.
Sorry I don't get what you mean.
Maybe I was not clear, I will try to explain better that I want with 2 screenshots :
Here is here the designer looks today:
Image

Here is what is the preview today, and what I want:
Image

Here is the report.
Without data in it, sorry, but if you could show me how to organize bands and everything, that would be great.

Thanks!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Repeat twice a DataBand within a Group

Post by Alex K. »

Hello,

Please try to place the child databand twice.
Please see the sample report in attachment.

Thank you.
Attachments
1622.SampleReport.mrt
(21.09 KiB) Downloaded 651 times
Jennypi
Posts: 361
Joined: Mon Nov 17, 2008 7:13 am
Location: France

Repeat twice a DataBand within a Group

Post by Jennypi »

Thanks, working perfectly!
One more question: how can I insert a header band in between the 2 child databands?
I'd like:
first headers
1
2
3
second headers
1
2
3
For the first headers it's easy, but for the second ones... ?
I tried to insert a databand in between, with datacount=1, but it's not working.

thanks!


Jennypi
Posts: 361
Joined: Mon Nov 17, 2008 7:13 am
Location: France

Repeat twice a DataBand within a Group

Post by Jennypi »

I've found how to do!
My in-between databand had no masterband... now that it's assigned, it's ok.

Thanks!
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Repeat twice a DataBand within a Group

Post by Andrew »

Hello,

Ok!

Let us know if you have any additional questions.
Thank you.
User avatar
CWS116
Posts: 8
Joined: Wed Jun 24, 2020 12:53 pm

Re: Repeat twice a DataBand within a Group

Post by CWS116 »

Hi, My report is like this:

GroupHeaderBand1

GroupHeaderBand2
-DataBand1
GroupFooterBand2

GroupHeaderBand3
-DataBand2
GroupFooterBand3

GroupHeaderBand4
-DataBand3
GroupFooterBand4

GroupFooterBand1

I have a Group and three Databands. the GroupHeaderBand1 just grouping first databand(DataBand1) and other band not grouping with GroupHeaderBand1. How can I do grouping all databands with GroupHeaderBand1??
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Repeat twice a DataBand within a Group

Post by Lech Kulikowski »

Hello,

In that case, you should use master-detail construction. Instead of the GroupHeaderBand1, you should use master DataBand.

Thank you.
User avatar
CWS116
Posts: 8
Joined: Wed Jun 24, 2020 12:53 pm

Re: Repeat twice a DataBand within a Group

Post by CWS116 »

Perfect, thank you!
Post Reply