Invert |
Reinhard Achleitner
02/02/2011 04:40
ReportViewer for multiple reports
Hello!
I have three reports in my application. The user can print each one of them seperatly.
Is it possible that i show the result of all 3 reports in one ReportViewer? To print all reports with one click?
kind regards
Reinhard
|
Sergey Kraynov
02/02/2011 05:32
ReportViewer for multiple reports
Hello,
You need to create the new template and put 3 SubReport there. Then set links to 3 template, on each SubReport per 1 link. Then display the new template on ReportViewer.
As example, you may run Perpetuum Software -> dotNet ModelKit Suite -> Report Sharp-Shooter -> Run Report Sharp-Shooter Samples Center. You'll find the examples. Note at Reports -> Sub-reports -> The use of sub-reports.
Best regards,
Perpetuum Software Support Team
|
Reinhard Achleitner
02/04/2011 05:22
ReportViewer for multiple reports
Is there no other way?
Because it should be also possible to create the same report with different values and concat them to one document...
kind regards
|
Sergey Kraynov
02/06/2011 23:42
ReportViewer for multiple reports
Hello,
In order to avoid subreports, you may use the following trick:
Code: | Document doc = inlineReportSlot1.RenderDocument();
Document doc2 = inlineReportSlot2.RenderDocument();
Document doc3 = inlineReportSlot3.RenderDocument();
foreach (Page page in doc2.Pages)
doc.Pages.Add(page);
foreach (Page page in doc3.Pages)
doc.Pages.Add(page);
InlineReportSlot resRS = new InlineReportSlot();
resRS.Document = doc;
reportViewer1.Source = resRS;
reportViewer1.Refresh(); |
We render three documents and then collect them to one document and show it in the reportViewer.
Best regards,
Perpetuum Software Support Team
|
Reinhard Achleitner
02/07/2011 04:16
ReportViewer for multiple reports
Thanks!
That was exactly what i'm looking for!
kind regards
Reinhard
|