VS 2008 and Crystal Reports Viewer
Posted on 2008-06-11
I am developing an application in VB/VS2008 and am using Crystal Reports and the CR Report Viewer. I am able to use the viewer on a form, and can pass parameters and get the report to load. What I am wondering is, can I use a single Form/Viewer to view all reports in my application? Or do I have to create a Form/Viewer for each report? I have not been able to find any examples of how to programatically call the form passing variables, so that I can use the same viewer for any report. My scenerio is to have a form open, clicking on a button will pass a parameter to the report, and open the selected report in the viewer. I'd like to do this from many areas of the application, but don't want to have to create multiple forms with viewers.