Create instance of Crystal Report (.rpt)
Hi
Iâm trying to use Crystal Reports with Linq to SQL in my web application. But couldnât create the instance of the crystal report (CrystalReport1.rpt) itself, which I need to Set the Data Source. Here is the example what Iâm trying to do.
' The report document is âCrystalReport1.rptâ
Dim report As New CrystalReport1
Dim results = (from obj in context.tSamples
select new with{ .Name = obj.Name, .Model = obj.Model, .Producer = obj.Producer }).ToList();
report.SetDataSource(results);
crystalReportsViewer1.ReportSource = report;
The web page is not allowing me to write the first line above, which is:
Dim report As New CrystalReport1
I would appriciate any help.
Thank you
sharif
|