Not understanding how to keep detail-band together...

Stimulsoft Reports.WPF discussion
Post Reply
User avatar
PJoyeux
Posts: 160
Joined: Tue Nov 26, 2013 9:40 am
Location: Germany

Not understanding how to keep detail-band together...

Post by PJoyeux »

Hi,

I have simple report with a detail-band that shall not be broken. If during rendering there is not enough space left on a page to completely print the band, then the whole band should move to the next page. I have tried setting different values for the property "Keep Details" but this didn't semm to change anything:
Bild 1.png
Bild 1.png (156.66 KiB) Viewed 5155 times
See the attached report. I want to keep "DataBand3" together, which is placed on Panel whose Property "Can Break" is set to false. Thanks!

Cheers,
Pascal
Attachments
Reiseangebot.mrt
(38.64 KiB) Downloaded 492 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Not understanding how to keep detail-band together...

Post by HighAley »

Hello.

Sorry for the delay with answer.
Please, try to set the Can Break property of the Panel1 and DataBand2 to true.

Thank you.
User avatar
PJoyeux
Posts: 160
Joined: Tue Nov 26, 2013 9:40 am
Location: Germany

Re: Not understanding how to keep detail-band together...

Post by PJoyeux »

Hi Aleksey,

yes this works! Thank you very much!

But...

WHY does this work??? I thought that "CanBreak" would do exactly the opposite. From my understanding, "CanBreak" set to true would mean something like "I can break myself into parts and thus have my data on different pages" where "CanBreak" set to false would mean "Please don't break me into parts and please don't distribute my content on different pages"...

Is the name of the property misleading or did I not understand its purpose?

Cheers,
Pascal
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Not understanding how to keep detail-band together...

Post by HighAley »

Hello.

You have next inheritance of components:
DataBand2 - Panel1 - DataBand3 - Text10

All of these components has Can Brake property set to False. So none of them can be broken.
If any component with such property has size more then page it is broken exactly at the end of page.
We will make an analysis of this issue if it's possible to improve this algorithm.

Thank you.

Thank you.
User avatar
PJoyeux
Posts: 160
Joined: Tue Nov 26, 2013 9:40 am
Location: Germany

Re: Not understanding how to keep detail-band together...

Post by PJoyeux »

Ok, got it now... :)

The property describes what it does.

Cheers,
Pascal
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Not understanding how to keep detail-band together...

Post by HighAley »

Hello.

Good. Let us know if you have any additional question.

Thank you.
User avatar
PJoyeux
Posts: 160
Joined: Tue Nov 26, 2013 9:40 am
Location: Germany

Re: Not understanding how to keep detail-band together...

Post by PJoyeux »

Well it looks like I didn't understand how "can Break" works after all... I thought it worked, this is why I had told you so, bus I was wrong obviously.

I have set "Can Break" to true for all the components you named (DataBand2 - Panel1 - DataBand3 - Text10) but as you can see above DataBand3 is still separated and distributed on two pages:
Bild 1.png
Bild 1.png (70.42 KiB) Viewed 5115 times
I have attached the report again. There's got be a way to have DataBand3 kept together. I need something like "keep together" for a DataBand in order to make sure all of a databands's content is always printed on the same page.

Any idea?

Cheers,
Pascal
Attachments
Reiseangebot.mrt
(45.07 KiB) Downloaded 412 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Not understanding how to keep detail-band together...

Post by HighAley »

Hello.

You shouldn't set the Can Break property to True of the DataBand3 and text components of it. Please, set Can Break property to False and each instance of Data Band will keep together.

Thank you.
Post Reply