Skip to Content
0
Former Member
Nov 25, 2009 at 01:50 PM

Option to start each group data in new page

36 Views

Hi All,

We are working on crystal reports 2008 and we have a requirement in which we need to start each grouped data in a new page depending on user input. We tried it out and found that crystal report has an option that can be specified in the rpt file. When we use this option in rpt file it works correctly. But when we try to do the same from the aspx's code behind page we are getting a blank new page after every group data. Following are the lines of code we used for this.

myReportDocument.ReportDefinition.Sections["GroupHeaderSection1"].SectionFormat.EnableNewPageAfter = true; myReportDocument.ReportDefinition.Sections["GroupHeaderSection1"].SectionFormat.EnableKeepTogether = true;

Please let us know where we are going wrong.

Thanks in advance

Thara