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

Print Multiple (Dynamic) Reports

2 Answers 224 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Landon
Top achievements
Rank 2
Landon asked on 05 Jan 2011, 07:14 PM
Hi,

I currently have a System that can create, view and export (PDF) Telerik Reports dynamically.  I have it set up so the user can choose which reports to be exported, or they can also export ALL of the reports that apply. For both the "Selected Reports" and "ALL Reports" areas of my project I would also like to add Print functionality but am unsure of a way to do this proggramatically.

Is it possible to print multiple Telerik Reports in C#? and if so, how?  (Preferably with a Preview if possible)

Best Regards,

Landon

2 Answers, 1 is accepted

Sort by
0
Landon
Top achievements
Rank 2
answered on 05 Jan 2011, 10:57 PM
Sorry for the double-post, but I ended up solving this simple problem on my own after some more vigorous Google-Hunting.

As I already had Methods set up to Dynamically create the Reports for PDF format, I simply used those methods to loop through my data, create the reports and add them to a new ReportBook. I then displayed this ReportBook in my ReportViewer, giving the effect of a Print Preview.

ReportBook book = new ReportBook();
 
book.Reports.Add(Report);
 
ReportViewer.Report = book;

This information may or may not be in the Telerik Knowledge Base already, but I felt free to share just in case! This thread may be closed Admin's!

Best Regards,

Landon
0
Landon
Top achievements
Rank 2
answered on 05 Jan 2011, 11:03 PM
Sorry for the double-post, but I ended up solving this simple problem on my own after some more vigorous Google-Hunting.

As I already had Methods set up to Dynamically create the Reports for PDF format, I simply used those methods to loop through my data, create the reports and add them to a new ReportBook. I then displayed this ReportBook in my ReportViewer, giving the effect of a Print Preview.

ReportBook book = new ReportBook();
 
book.Reports.Add(Report);
 
ReportViewer.Report = book;

This information may or may not be in the Telerik Knowledge Base already, but I felt free to share just in case! This thread may be closed Admin's!

Best Regards,

Landon
Tags
General Discussions
Asked by
Landon
Top achievements
Rank 2
Answers by
Landon
Top achievements
Rank 2
Share this question
or