Add extra page at the end of report

6 posts, 0 answers
  1. Mattias
    Mattias avatar
    263 posts
    Member since:
    Aug 2012

    Posted 19 Jan 2010 Link to this post

    Hi,
    I have a some list boxes on a ASP.NET page were I can filter my report.
    After I made my choices I click the submit button and render the report.

    Now I want to print all the filtered items on a new blank page at the end of the report.
    Is it possible to add a new blank page to the report and print the item names there?

    My first thought was to use a sub report and place it on the reports page footer section but the designer want let me so I guess it's not possible!?
    (I could place the items directly on the page footer section but I have a couple of reports with equal filter options so I wanted to use some kind of include)

    Regards,
    Mattias

  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 20 Jan 2010 Link to this post

    Hello Mattias,

    As the Telerik Reporting WhitePaper explains, reports differ from documents and you cannot add freely content to wherever you want. A report displays data by applying “rules” (or “templates”) to the data and
    then rendering that data in a layout that’s ultimately designed to be printed. Also like repeaters, individual data items rendered in a report cannot be altered. The templates are defined and then applied to all data items the same way. The reporting engine takes care of the processing and paging of the data and you cannot interfere here either.
    Your best bet would be to create a single page report with the data you want and use the Report Book feature to "join" your main report with this one.

    Sincerely yours,
    Steve
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Mattias
    Mattias avatar
    263 posts
    Member since:
    Aug 2012

    Posted 21 Jan 2010 Link to this post

    A report book should do it! I think!

    But how do I add my reports to the book?
    I'm trying with:
    Report.ActionPlanGlobalReport actionPlanGlobalReport = new Report.ActionPlanGlobalReport(); 
    actionPlanGlobalReport.Activities = GetSelectedGlobalChildActivities(); 
              
    Report.InfoReport infoReport = new Report.InfoReport(); 
     
    base.ReportBookControl.Reports.Add(actionPlanGlobalReport); 
    base.ReportBookControl.Reports.Add(infoReport); 
     

    But the .Add method doesn't allow my reports!? It wants a ReportInfo class.
    Do I need to convert my report into a ReportInfo class?

    /Mattias
  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 21 Jan 2010 Link to this post

    Hello Mattias,

    The article that I've referenced in my previous post, shows you how to add reports to a report book i.e. you instantiate a ReportBook class and add the report to it:

    ReportBook reportBook = new ReportBook();
    reportBook.Reports.Add(new ReportA());
    reportBook.Reports.Add(new ReportB());

    Then you set the Report property of the report viewer to the reportBook instance.

    Regards,
    Steve
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Mattias
    Mattias avatar
    263 posts
    Member since:
    Aug 2012

    Posted 21 Jan 2010 Link to this post

    I have a reportbookcontrol not a reportbook on the page (taking from your documentation) and the reportbookcontrol doesn't take a report as a parameter in the add method, just a reportinfo class.
    (shouldn't they take the same parameters?)

    I'll try to change to a reportbook in the codebehind instead.

    /Mattias
  7. Peter Huisman
    Peter Huisman avatar
    16 posts
    Member since:
    Dec 2004

    Posted 30 Mar 2011 Link to this post

    Has this topic been answered. I too have a reportbookcontrol on my page. Filled with reports. And I need to set the reportParameters in these reports. But that is somehow not possible. Same kind of problem I guess.
Back to Top
DevCraft banner