CanBreak=false on DataBand does not work again

Stimulsoft Reports.WPF discussion
Alex74
Posts: 12
Joined: Mon Mar 04, 2019 11:18 pm

CanBreak=false on DataBand does not work again

Post by Alex74 »

Hello.
Many years ago I have created a lot of reports.
But now, ... maybe I'm forgotten how to do, or simply things goes changed, but I can't achieve what I want.
The requirement is very simple - the databand should not be breaked accros page.
So I setup CanBreak=false, but this has no effect at all.
Then I set AfterPageBreak=true - this was aslo not correct.
At least I set BeforePageBreak on previous DataBand - still no correct result.
The correct result should be report with 6 sites, two for each of 3 entries.

What I get is shown on screenshoot.
The attachment Report.png is no longer available
Also report and XML file are attached.

What goes wrong?
P.S. WPF Report Creator is used.

Many thanks in advance.
Attachments
Report.png
Report.png (23.61 KiB) Viewed 4872 times
Lech Kulikowski
Posts: 6237
Joined: Tue Mar 20, 2018 5:34 am

Re: CanBreak=false on DataBand does not work again

Post by Lech Kulikowski »

Hello,

Please send us a sample report with test data which reproduces the issue for analysis.

Thank you.
Alex74
Posts: 12
Joined: Mon Mar 04, 2019 11:18 pm

Re: CanBreak=false on DataBand does not work again

Post by Alex74 »

Hello,

I see, it got lost on first post - this is strange.
Now again.

Thank you.
The attachment MainTest.xml is no longer available
The attachment MainTest.xml is no longer available
Attachments
Report.mrt
(229.94 KiB) Downloaded 265 times
Alex74
Posts: 12
Joined: Mon Mar 04, 2019 11:18 pm

Re: CanBreak=false on DataBand does not work again

Post by Alex74 »

The XML-file is now in zip, I tried it 3 times, but this was not uploaded.
MainTest.zip
(4.8 KiB) Downloaded 277 times
Alex74
Posts: 12
Joined: Mon Mar 04, 2019 11:18 pm

Re: CanBreak=false on DataBand does not work again

Post by Alex74 »

Lech Kulikowski wrote: Tue Mar 05, 2019 12:36 pm Hello,

Please send us a sample report with test data which reproduces the issue for analysis.

Thank you.
Hello,

any ideas?

Report (mrt) and data (in zip file) are attached.

Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: CanBreak=false on DataBand does not work again

Post by Alex K. »

Hello,

Some bands you can split on several ChildBands and set GrowToHeight property for Text components.

Thank you.
Attachments
Annotation 2019-03-07 093114.jpg
Annotation 2019-03-07 093114.jpg (341.69 KiB) Viewed 4839 times
Alex74
Posts: 12
Joined: Mon Mar 04, 2019 11:18 pm

Re: CanBreak=false on DataBand does not work again

Post by Alex74 »

Alex K. wrote: Thu Mar 07, 2019 8:34 am Hello,

Some bands you can split on several ChildBands and set GrowToHeight property for Text components.

Thank you.
Hello,

But I've don't understand, how this should prevent a PageBreak inside a band - the are more bands now.
I've attached a screenshoot with a page break - this break should be avoided.
Why CanBreak=false does not work anymore?

Thank you.
Lech Kulikowski
Posts: 6237
Joined: Tue Mar 20, 2018 5:34 am

Re: CanBreak=false on DataBand does not work again

Post by Lech Kulikowski »

Hello,

Please set UnlimitedHeight=false and Segment=1.

Thank you.
Alex74
Posts: 12
Joined: Mon Mar 04, 2019 11:18 pm

Re: CanBreak=false on DataBand does not work again

Post by Alex74 »

Lech Kulikowski wrote: Thu Mar 07, 2019 11:33 am Hello,

Please set UnlimitedHeight=false and Segment=1.

Thank you.
Thank you - now it works as it should ...but it is not funny to design if databands rearranges under the page end.
Why you recommend to set UnlimitedHeight=true for such a case without implicitly say that it would be problematic in relation to CanBreak-settings?

Please also note, German Translation is wrong in my opinion:
Settings: "Seiten- und Spelntenumbruch"
"Vor der neuen Seite" - please replace with "Nach der neuen Seite" oder besser "Seitenumbruch davor"
"Nach der neuen Seite" - please replace with "Vor der neuen Seite" oder besser "Seitenumbruch danach"

Thank you!
Lech Kulikowski
Posts: 6237
Joined: Tue Mar 20, 2018 5:34 am

Re: CanBreak=false on DataBand does not work again

Post by Lech Kulikowski »

Hello,

> ..but it is not funny to design if databands rearranges under the page end.

Sorry, maybe we did not exactly understand your issue.
Attachments
Annotation 2019-03-07 134458.jpg
Annotation 2019-03-07 134458.jpg (281.73 KiB) Viewed 4829 times
Post Reply