Page as Group Header

Stimulsoft Reports.NET discussion
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Page as Group Header

Post by Leandro Borges »

Hello.

In my report there are several companies. Is it possible when change the company, print a page as a Group Header?
Ex: Company A (would be page 1)
Texts (would be page 2)
Company B (would be page 1)
Texts (would be page 2)

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

Re: Page as Group Header

Post by Alex K. »

Hello,

Please try to use the NewPageBefore or NewPageAfter properties for this task.

Thank you.
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Re: Page as Group Header

Post by Leandro Borges »

Hello.

I found the property.
Is it possible to make text print in the center of the page without increasing the band?

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Page as Group Header

Post by HighAley »

Hello, Leandro.

If the text should be static, you could place it in center without any band.

Thank you.
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Re: Page as Group Header

Post by Leandro Borges »

Hello.

Ok, but how do I set the NewPageBefore property without band?

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Page as Group Header

Post by HighAley »

Hello, Leandro.

If the text component is on the other template, it will always be on a new page.
Or you could use the Engine.NewPage(); method.
Maybe we missed something.
Could you describe your whole scenario?

Thank you.
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Re: Page as Group Header

Post by Leandro Borges »

Hello.

Is it possible to increase the height of a text component using BeforePrint?

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Page as Group Header

Post by HighAley »

Hello.

Yes, you could change the Height property of the component.

Thank you.
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Re: Page as Group Header

Post by Leandro Borges »

Hello.

As? Could you give me an example?

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Page as Group Header

Post by HighAley »

Hello, Leandro.

Here is a simple code:

Code: Select all

Text1.Height = 5;
Thank you.
Post Reply