Need help with NewPageBefore

Stimulsoft Reports.NET discussion
Post Reply
lsilva.gvdasa
Posts: 25
Joined: Tue Apr 11, 2017 4:47 pm

Need help with NewPageBefore

Post by lsilva.gvdasa »

Hello guys.

I need help with NewPageBefore option on my report.

I have tried everything to make GroupHeaderBand1 generate new page before it appears but I couldn't.

Here comes the sample:
Report - Sample.mrt
(67.1 KiB) Downloaded 330 times
Report - Data.7z
(2.2 KiB) Downloaded 188 times
Thanks.

I'm using the last build. (0.10)
Last edited by lsilva.gvdasa on Tue Aug 08, 2017 5:04 pm, edited 2 times in total.
alex-t
Posts: 3
Joined: Tue Aug 08, 2017 8:57 am

Re: Need help with NewPageBefore

Post by alex-t »

Same issue.

My example - https://github.com/alex-t0/StimulsoftTest, look PageBreaks.mrt and code that use this template
lsilva.gvdasa
Posts: 25
Joined: Tue Apr 11, 2017 4:47 pm

Re: Need help with NewPageBefore

Post by lsilva.gvdasa »

SimpleList - One Group.mrt
(37.23 KiB) Downloaded 337 times
SimpleList - Two Groups.mrt
(38.12 KiB) Downloaded 324 times
It seems like everytime I put two or more groups the options KeepGroupTogether and NewPageBefore doesn't work anymore. Please check theses examples made by the demo on stimulsoft's web site.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Re: Need help with NewPageBefore

Post by Edward »

Hi Alexander,

Please modify your code as follows to disable the RemoveEmptySpaceAtBottom feature:

Code: Select all

var settings = new StiWord2007ExportSettings();
settings.RemoveEmptySpaceAtBottom = false;
report.ExportDocument(StiExportFormat.Word2007, stream, settings);
Hi Isilva,

Please set the SkipFirst property to false for the GroupHeader band, that has the NewPageBefore property set to true.

Thank you,
Edward
lsilva.gvdasa
Posts: 25
Joined: Tue Apr 11, 2017 4:47 pm

Re: Need help with NewPageBefore

Post by lsilva.gvdasa »

Edward wrote:Hi Alexander,

Please modify your code as follows to disable the RemoveEmptySpaceAtBottom feature:

Code: Select all

var settings = new StiWord2007ExportSettings();
settings.RemoveEmptySpaceAtBottom = false;
report.ExportDocument(StiExportFormat.Word2007, stream, settings);
Hi Isilva,

Please set the SkipFirst property to false for the GroupHeader band, that has the NewPageBefore property set to true.

Thank you,
Edward
Hi Edward.

This will generate an extra first page wich I don't want to.

I have opened a ticket with the support and Ivan said that is a confirmed issue on Stimulsoft's engine.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Need help with NewPageBefore

Post by Alex K. »

Hello,

Thank you for the information.
We will reply to you by email on our support system when the solution will be available.

Thank you.
lsilva.gvdasa
Posts: 25
Joined: Tue Apr 11, 2017 4:47 pm

Re: Need help with NewPageBefore

Post by lsilva.gvdasa »

Aleksey wrote:Hello,

Thank you for the information.
We will reply to you by email on our support system when the solution will be available.

Thank you.
Hello Aleksey,

Can you confirm that this issue was solved in the last build of Stimulsoft. NET?

Att,
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Need help with NewPageBefore

Post by HighAley »

Hello.

We confirm that the fix in included in our latest build.

Thank you.
Post Reply