One Header band for multiple data band.

Stimulsoft Reports.NET discussion
Post Reply
jacksonramon
Posts: 7
Joined: Tue Nov 11, 2014 5:27 pm

One Header band for multiple data band.

Post by jacksonramon »

Hi.
In my sample report, HeaderBand1 will be hidden if first data band not present.
I want HeaderBand1 available if one of sub data band shown.
Thank you.
Attachments
SampleReport.mrt
(49.69 KiB) Downloaded 226 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: One Header band for multiple data band.

Post by HighAley »

Hello.

If you create a master-detail report then you could use the Print If Detail Empty property of the Band.

Thank you.
jacksonramon
Posts: 7
Joined: Tue Nov 11, 2014 5:27 pm

Re: One Header band for multiple data band.

Post by jacksonramon »

Hello.
But I want HeaderBand1 disappear, when data1 and data2 are empty.
Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: One Header band for multiple data band.

Post by HighAley »

Hello.

The Header band is connected to nearest Data Band.
If you need to see the Header with second band you could add second band and disable it if the first header is present.
Please, look at the After Print event of the HeaderBand1 and Before Print event of the HeaderBand4.

Thank you.
Attachments
SampleReport_modified.mrt
(51.04 KiB) Downloaded 249 times
jacksonramon
Posts: 7
Joined: Tue Nov 11, 2014 5:27 pm

Re: One Header band for multiple data band.

Post by jacksonramon »

Hello Aleksey.
your solution worked perfectly.
Thank you so much.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: One Header band for multiple data band.

Post by HighAley »

Hello.

We are always glad to help you.
Let us know if you need any additional help.

Thank you.
Post Reply