NullReferenceException when using crystalReportViewer.ReportSource



I am using VS.NET 2003 with crystal reports XI release 2. I get a
runtime error at the following line:

oRptForm.crystalReportViewer.ReportSource = oReport


An unhandled exception of type 'System.ExecutionEngineException'
occurred in mscorlib.dll

If I put the following statement inside a try catch block, it gives me
a
NullReferenceException. I have checked oReport to see that it has data.


Please help me with this.

Thanks for your help

.



Relevant Pages