private void crystalReportViewer1_Load(object sender, EventArgs e) { Cls_data obj = new Cls_data(); ReportDocument rptDoc = new ReportDocument(); DataSet ds = new DataSet(); ds = obj.data(); rptDoc.Load(@"D:\BillingSoftware\BillingSoftware\CrystalReport1.rpt"); rptDoc.SetDataSource(ds); crystalReportViewer1.ReportSource = rptDoc; crystalReportViewer1.Refresh(); }
add this to config file... you should be all set... <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> </startup>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)