Reference a Crystal Report Object in a web form

  • Thread starter Thread starter Dan Aldean
  • Start date Start date
D

Dan Aldean

Hi,

I created a Crystal Report in .NET environment and I use a
CrystalReportViewer to show it.
Based on suggestions I received here I used the Push method.
The big problem I encounter now is referencing the report in code. For
example:

using CrystalDecisions.CrystalReports.Engine;

using CrystalDecisions.Shared;

...........................................

da.Fill(ds);

Report1 rpt1 = new Report1();

rpt1.SetDataSource(ds);

crystalReportViewer1.ReportSource = rpt1;

Where Report1 is the Crystal Report I created. The problem is that Report1
is not recognised by the environment, therefore I cannot create an instance
of it.

Thanks
 
Back
Top