Page 1 of 1

Mysterious behavior of StiHeaderBand

Posted: Mon Sep 03, 2012 11:54 am
by LukasT
Hello,
I have report with PageHeaderBand, HeaderBand, DataBand, SummaryBand and PageFooterBand...
... the mysteri is that if I show StiReport object with ShowWithWpf method, content of HeaderBand is hidden and than if I open StiReport object with WpfDesigner and there I show report in Preview tab, HeaderBand is vissible... what is wrong?
Report is attached.....

Re: Mysterious behavior of StiHeaderBand

Posted: Mon Sep 03, 2012 12:28 pm
by LukasT
I found it is related to SummaryBand.... if report is without summary, header is visible....

Re: Mysterious behavior of StiHeaderBand

Posted: Tue Sep 04, 2012 8:45 am
by Ivan
Hello,

We couldn't reproduce this bug.
Can you please send us a simple test project, which reproduces the issue?

Thank you.

Re: Mysterious behavior of StiHeaderBand

Posted: Tue Sep 04, 2012 10:05 am
by LukasT
Yes Ivan, I found problem in structure of report.... SummaryBand was inserted into Components collection on wrong position...Exists any function, which automaticly reorder bands in report? ... and then will be SummaryBand on bottom of report...

Re: Mysterious behavior of StiHeaderBand

Posted: Wed Sep 05, 2012 8:13 am
by HighAley
Hello.
LukasT wrote:Yes Ivan, I found problem in structure of report.... SummaryBand was inserted into Components collection on wrong position...Exists any function, which automaticly reorder bands in report? ... and then will be SummaryBand on bottom of report...
You could use next code:

Code: Select all

page.DockToContainer();
page.Correct();
Thank you.

Re: Mysterious behavior of StiHeaderBand

Posted: Wed Sep 05, 2012 8:23 am
by LukasT
Thank you Aleksey ;-)

Re: Mysterious behavior of StiHeaderBand

Posted: Wed Sep 05, 2012 9:25 am
by HighAley
Hello.

Not at all.
We are always glad to help you.

Thank you.