Namespaces:
using
CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
Code:
ReportDocument cryRpt = new
ReportDocument();
cryRpt.Load("F: /WindowsFormsApplication1/CrystalReport1.rpt"); //report path
cryRpt.SetDataSource(dt); //dt->datasource
(datatable or ….)
crystalReportViewer1.ReportSource
= cryRpt;
crystalReportViewer1.Refresh();
No comments:
Post a Comment