I am writing a VB app where I want the report to preview from within a module.
I have an object of type CrystalDecisions.CrystalReports.Engine.ReportDocument
I am using that object's load event to point to the path where the Crystal Report resides. This report is not embedded within VB.NET. I have Crystal XI Release 2 with Service Pack 2 developer edition installed and am using VS2005.
After loading the report and setting Table Logon Info, parameters, etc., I then do Form1.show().
Form1 contains the CrystalReportViewer. Form1's load event is CrystalReportViewer1.ReportSource = objectreportdocument (as defined as public in the module).
When I run the application (Start debug), the reportviewer flashes and then the program ends. It does not display my report. I need to know why.
Can anyone please help?
I have an object of type CrystalDecisions.CrystalReports.Engine.ReportDocument
I am using that object's load event to point to the path where the Crystal Report resides. This report is not embedded within VB.NET. I have Crystal XI Release 2 with Service Pack 2 developer edition installed and am using VS2005.
After loading the report and setting Table Logon Info, parameters, etc., I then do Form1.show().
Form1 contains the CrystalReportViewer. Form1's load event is CrystalReportViewer1.ReportSource = objectreportdocument (as defined as public in the module).
When I run the application (Start debug), the reportviewer flashes and then the program ends. It does not display my report. I need to know why.
Can anyone please help?