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

Add extra page at the end of report

5 Answers 544 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mattias
Top achievements
Rank 1
Mattias asked on 19 Jan 2010, 10:36 AM
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

5 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 20 Jan 2010, 01:07 PM
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.
0
Mattias
Top achievements
Rank 1
answered on 21 Jan 2010, 09:30 AM
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
0
Steve
Telerik team
answered on 21 Jan 2010, 10:11 AM
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.
0
Mattias
Top achievements
Rank 1
answered on 21 Jan 2010, 10:41 AM
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
0
Peter Huisman
Top achievements
Rank 2
answered on 30 Mar 2011, 02:52 PM
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.
Tags
General Discussions
Asked by
Mattias
Top achievements
Rank 1
Answers by
Steve
Telerik team
Mattias
Top achievements
Rank 1
Peter Huisman
Top achievements
Rank 2
Share this question
or