Continuing Group Header

Stimulsoft Reports.NET discussion
satisht
Posts: 150
Joined: Mon Apr 09, 2007 12:28 am
Location: Pune

Continuing Group Header

Post by satisht »

If same group header is on next page then I need to show that group header on next page
How should I implement this in my report?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Continuing Group Header

Post by Edward »

If I understand you correctly, you have 2 GroupHeaderBands one underneath the other on the same page.
GroupHeaderBand1.StartNewPage = true
GroupHeaderBand2.StartNewPage = true

You need achieve the following:
GroupHeaderBand1 is printed on page1
GroupHeaderBand2 is printed on page2

Is it your aim?
satisht
Posts: 150
Joined: Mon Apr 09, 2007 12:28 am
Location: Pune

Continuing Group Header

Post by satisht »

Sorry I could not explain you correctly, I mean If my data is continuing on next page then I need to show same group header on next page also if the data is continued on next page ? How should I do this ? If start new page property is true then every new group is starting from new page I dont want that.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Continuing Group Header

Post by Edward »

For this case it is enough to set GroupHeader.PrintOnAllPages property in true.

Thank you.
satisht
Posts: 150
Joined: Mon Apr 09, 2007 12:28 am
Location: Pune

Continuing Group Header

Post by satisht »

Thanx it works
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Continuing Group Header

Post by Edward »

Let us know if you need any help.

Thank you.
satisht
Posts: 150
Joined: Mon Apr 09, 2007 12:28 am
Location: Pune

Continuing Group Header

Post by satisht »

IF the group Header is continued on next page then should we add "Continued" in that header means

If Group Header on 1'st Page is
Header 1

Group Header on 2'nd page is
Header 1 continued
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Continuing Group Header

Post by Edward »

satisht wrote:IF the group Header is continued on next page then should we add "Continued" in that header means

If Group Header on 1'st Page is
Header 1

Group Header on 2'nd page is
Header 1 continued
Yes, it is possible.

Please do the following steps:
1. Place StiText component on GroupHeaderBand with Enabled = false and desired text inside, e.g. Text1.
2. In the BeforePrint event of the DataBand please set the following script:

Code: Select all

Text1.Enabled = True
3. In the GroupFooterBand which is related to this GroupHeader band you should disable Text1 again:

Code: Select all

Text1.Enabled = False
Thank you.
satisht
Posts: 150
Joined: Mon Apr 09, 2007 12:28 am
Location: Pune

Continuing Group Header

Post by satisht »

I am not having group footer and how should i write before print event?
satisht
Posts: 150
Joined: Mon Apr 09, 2007 12:28 am
Location: Pune

Continuing Group Header

Post by satisht »

I am not having group footer and how should i write before print event?
Post Reply