print band band headers on a new page only

Stimulsoft Reports.NET discussion
Post Reply
Jozef Balga
Posts: 56
Joined: Fri May 27, 2011 8:33 am
Location: Bratislava, Slovakia

print band band headers on a new page only

Post by Jozef Balga »

Hello!

Is it possible to print data band header only for new pages and disable display on the page where the data band starts?
I have a template where multiple bands follow each other and I would like to print the header only
1. before the 1st data band and
2. on every new page
I defined the headers for every data band but when the band ends at the middle of a page, the header for the next data band is printed, which I would like to prevent. I attached a sample report with my problem. Thank you for your help.

Jozef
Attachments
one_header.mrt
sample template file
(16.86 KiB) Downloaded 589 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: print band band headers on a new page only

Post by HighAley »

Hello.

Please, try to set the Print On property of the header to Except First Page.

Thank you.
Jozef Balga
Posts: 56
Joined: Fri May 27, 2011 8:33 am
Location: Bratislava, Slovakia

Re: print band band headers on a new page only

Post by Jozef Balga »

Thank you for your suggestion, but it does not help. The PrintOn property is related to the pages of the report. If the 1st data band ends in the middle of the 2nd page, the 'Except First Page' property is not useful, because the header of the 2nd band already starts on the second page, so it is printed too. Is there any other way to prevent the 2nd header from being printed in the middle of the second page? Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: print band band headers on a new page only

Post by Alex K. »

Hello,

In this case, you can use the additional code in the events.
Please check the modified report in attachment.

Thank you.
Attachments
one_header.mrt
(17.08 KiB) Downloaded 594 times
Jozef Balga
Posts: 56
Joined: Fri May 27, 2011 8:33 am
Location: Bratislava, Slovakia

Re: print band band headers on a new page only

Post by Jozef Balga »

Thank you for your help, it took a while to understand how this solution works, but now it is clear :).

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

Re: print band band headers on a new page only

Post by Alex K. »

Hello,

Let us know if you need any additional help.

Thank you.
Post Reply