Page 1 of 1

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

Posted: Tue Mar 04, 2014 12:02 pm
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 5158 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

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

Posted: Thu Mar 06, 2014 10:52 am
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.

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

Posted: Thu Mar 06, 2014 12:04 pm
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

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

Posted: Fri Mar 07, 2014 7:21 am
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.

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

Posted: Fri Mar 07, 2014 10:40 am
by PJoyeux
Ok, got it now... :)

The property describes what it does.

Cheers,
Pascal

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

Posted: Fri Mar 07, 2014 1:24 pm
by HighAley
Hello.

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

Thank you.

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

Posted: Fri Mar 21, 2014 10:48 am
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 5118 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

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

Posted: Fri Mar 21, 2014 12:18 pm
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.