Mysterious behavior of StiHeaderBand

Stimulsoft Reports.WPF discussion
Post Reply
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Mysterious behavior of StiHeaderBand

Post 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.....
Attachments
Report.mrt
(16.06 KiB) Downloaded 222 times
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Re: Mysterious behavior of StiHeaderBand

Post by LukasT »

I found it is related to SummaryBand.... if report is without summary, header is visible....
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Re: Mysterious behavior of StiHeaderBand

Post by Ivan »

Hello,

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

Thank you.
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Re: Mysterious behavior of StiHeaderBand

Post 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...
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Mysterious behavior of StiHeaderBand

Post 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.
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Re: Mysterious behavior of StiHeaderBand

Post by LukasT »

Thank you Aleksey ;-)
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Mysterious behavior of StiHeaderBand

Post by HighAley »

Hello.

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

Thank you.
Post Reply