Reference a Crystal Report Object in a web form

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top