How to use single MDI Child Form for all Crystal reports
-
Hello all, I have MDI Application in which i am displaying crystal reports. For that i have created a mdi child form. in which ReportViewer control is used to display reports. Now in my app, there would be many reports. so, do i need to create that many chile mdi forms and add reportviewer in all these forms? or else can i use single form and reportviewer to disaply all forms? and if yes.... how? because it is MDI application, it wont allow me to open multiple instances of single form. but, user may want to view multiple reports without closing other. any idea? Thanx.......!
-
Hello all, I have MDI Application in which i am displaying crystal reports. For that i have created a mdi child form. in which ReportViewer control is used to display reports. Now in my app, there would be many reports. so, do i need to create that many chile mdi forms and add reportviewer in all these forms? or else can i use single form and reportviewer to disaply all forms? and if yes.... how? because it is MDI application, it wont allow me to open multiple instances of single form. but, user may want to view multiple reports without closing other. any idea? Thanx.......!
I used to do this before changing to RS. Have a form with a viewer only Create and test your report in CR and save it as a .RPT file. Report should be based on stored procedure or at least a paramaterised query (I always used procs). In VB create a report (CR) using the .RPT file name (can't remember the details) Pass in the parameters as CR parameter array Connect the table objects in the report to the database Pass the report object to the viewer Show the MDI form.
Never underestimate the power of human stupidity RAH