How to control the number of records per page?

3 posts, 0 answers
  1. Feedback
    Feedback avatar
    15 posts
    Member since:
    May 2007

    Posted 23 Aug 2007 Link to this post

    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?


  2. Svetoslav
    Svetoslav avatar
    649 posts

    Posted 28 Aug 2007 Link to this post

    Hello Matthew,

    This issues has been discussed in the forums some time ago. You can find the discussion here:

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

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft R3 2016 release webinar banner
  4. Chary
    Chary avatar
    1 posts
    Member since:
    Oct 2007

    Posted 24 Feb 2008 Link to this post

    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.


    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);


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

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

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


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

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


Back to Top