Months ago, when using VS.NET 1.0, the following code worked...but now [on a totally different machine] the same code bombs using VS.NET 1.1, with the error 'Invalid Report Source':
FrmViewer oViewer = new FrmViewer(); // form w/viewer control
RptTestReport oRpt = new RptTestReport(); // just a simple little RPT
oRpt.Database.Tables[0].SetDataSource(DtSampleTable); // data for report
oViewer.ViewerControl.ReportSource = oRpt;
oViewer.ShowDialog();
I get an error mesage on the very last line of code, when my report viewer loads..."Invalid Report Source"
Again, this worked perfectly under VS 1.0...but I can't get it to work under VS 1.1. I've tried different flavors of the syntax, and I recreated the report, but to no avail.
I'm pulling my hair out on this one...Help!
Thanks,
Kevin