Crystal reports in C#.net

R

radha

Hi

I am a beginner, trying to open a crystal report using crytal report
viewer in my webform. But nothing happens when I open the page. I am
not sure where I went wrong. This is my code in page load. Please
someone help me


CrystalReportViewer1 = new
CrystalDecisions.Web.CrystalReportViewer();
String reportPath = @"C:\Program Files\Crystal
Decisions\Crystal Reports 10\Samples\En\Reports\General Business\World
Sales Report.rpt";
StockObjectsReport = new ReportDocument();
StockObjectsReport.Load(reportPath);
CrystalReportViewer1.ReportSource = StockObjectsReport;

Thanks
 
C

Christopher Reed

After your ReportSource, you need the following:

CrystalReportViewer1.DataBind();
 

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