Hi,
I need to display more than 1 report (which are totally unrelated to each other) in one viewer. I cannot seem to find a way to do that using reportsource of the viewer. I am using .Net 1.1 and c# and crystal version 9.1.5100.
Basically when the application starts, the user will be provided a list of reports which they check off to generate. So, is the user selected 3 reports, I want to generate them individually and then show them all on the same viewer one after the other. This should not be so hard.. but why is it.
Please Please help. I need it very urgently. Any other suggestions will be welcome too.
Thanks
dev_kh

One viewer, multiple reports shown one after the other on it. How? c#
Irfan Khalil
Capt Jack,
Thanks for your helpful suggestions. I had thought about sub reports, but since I've never even seen how they behave, let alone design one, I wasn't sure that they were the way to go. I did briefly look into your idea about using the event handler to load the next report at the last page, but I think that the subreports will be best(not forcing user to actually go to the last page to fire the event ) , and it's about time I try tackling them.
Wish me luck.
It's upward and onward from here.
Danny
LubosSykora
Hi,
I realize that this is a followup on an old thread, but it does touch on a problem that I'm not sure how to best approach.
I need to generate 11 different reports that are viewed through the same CR viewer(C# VS 2005). Keith stated that you can't have more than one report bound to the CR viewers at a time, but that you can load in multiple reports and then view them in order.
Is there away to loop through the reports and load each one individually into the viewer "This means that you can load in multiple reports and then view them in order..." I don't totally understand what is being said here.
Each of my 11 reports are related, but they aren't summaries of each other, they contain different headings and columns. Most of the reports wrap to require a second page to complete its report line. Is it possible to build one massive .RPT file of all these reports I don't like the idea of using tabs, especially since it will be necessary to print all the reports in one stream.
Thanks.
Danny
J Camp
Sub Reports is the only way if you want to display multiple reports in single report.
By that he meant you can change report bound to your CrystalReport Viewer.
I have an idea but i havent tried it,See ImageViewer has limitation that at a time you can bind only one report to it, now what you can do is , see if navigation bar has a event handler then you can test if its the last page and user clicked next then you can bind different report that you intend to display, you can decide the report prder by checking what report is currently displayed and then binding next report you want to display.
crystalReportViewer1.ReportSource = ReportObject
crystalReportViewer1.Refresh()
every time change this report object inside event handler on next click on last page, but in this case you will need to disable the navigations buttons that take you to last or first page or see if you can somehow handle it.
Last but not least
using SubReports is better way to display report like the way you said, massive report combining multiple reports, also you can use "Report on demand" for subreports , i think data is fetched and report is displayed only when you click on link on main report.
Igrekkel
The viewers for Crystal Reports for Visual Studio 2005 can not have more than one report bound to it at a time. This means that you can load in multiple reports and then view them in order one after the other as you are trying.
This was a design decisions by our product group as a previous version of COM based viewer did support this type of report bundling.
Keith - Business Objects