This is a migrated thread and some comments may be shown as answers.

How to control the number of records per page?

2 Answers 345 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Feedback
Top achievements
Rank 1
Feedback asked on 23 Aug 2007, 04:44 PM
I have a master report, and inside it are several subreports. 

Each subreport has its own set of header information for its particular set of records.  (Each subreport is, in effect, a completely new report, and the master report just allows them to all be printed into the same PDF document.)

If the number of records in a subreport spills onto another page, there is currently no way for me to specify that the subreport header needs to also appear on the subsequent pages that show the subreport's data.

Is there a way to do this manually?  Can I specify, for instance, that after every 25 records I want to cause a page break and manually print the headers again, and then continue with the data?

It would so great if subreports could have their own SubreportPageHeader and SubreportPageFooter fields, but until that happens, do you have any creative ideas for a work-around?

Thanks!

Matthew

2 Answers, 1 is accepted

Sort by
0
Svetoslav
Telerik team
answered on 28 Aug 2007, 07:20 AM
Hello Matthew,

This issues has been discussed in the forums some time ago. You can find the discussion here: http://www.telerik.com/community/forums/thread/b311D-hbact.aspx

We will appreciate anyone sharing his creative ideas on how to overcome this behavior.


Greetings,
Svetoslav
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Chary
Top achievements
Rank 1
answered on 24 Feb 2008, 09:28 PM

I have the same development as the other user and I have used report header of the sub report to add the sub report title and sub report column titles. Once the title is added I have added Y = Y + 1cm (where Y is the Y coordinate).

Below code shows two header columns one under the other.

Regards
Chary
*******************

this.reportHeader = new ReportHeaderSection();

this.reportHeader.Height = new Unit(0.8, UnitType.Cm);

this.reportHeader.Name = "reportHeader";

//Get List<Columns>

List<Column> columns = grid.ReportColumns();

unitW = Unit.Cm(2.95);

TextBox txtCaption1 = new Telerik.Reporting.TextBox();

txtCaption1 = SetCaptionTextBoxFormat(txtCaption1, columns[j].Header1, columns[j].Header1);

this.reportHeader.Items.Add((ReportItemBase)txtCaption1);

unitY = unitY.Add(Unit.Cm(0.5));

TextBox txtCaption2 = new Telerik.Reporting.TextBox();

txtCaption2 = SetCaptionTextBoxFormat(txtCaption2, columns[j].Header2, columns[j].Header2);

this.reportHeader.Items.Add((ReportItemBase)txtCaption2);

unitY = unitY.Add(Unit.Cm(-0.5));

unitX = unitX.Add(Unit.Cm(3));

************************************************

Tags
General Discussions
Asked by
Feedback
Top achievements
Rank 1
Answers by
Svetoslav
Telerik team
Chary
Top achievements
Rank 1
Share this question
or