oSubmitReportBLL.PostedOn = txtDate1.Text.Trim(); DataTable dt= new DataTable(); dt = oSubmitReportBLL.SelectRecievedReports(); ReportDocument r = new ReportDocument(); string reportpath = Server.MapPath("~/CrystalReport.rpt"); r.Load(reportpath); DataSet DataSet1 = new DataSet(); DataSet1.Tables.Add(dt); r.SetDataSource(DataSet1); CrystalReportViewer1.ReportSource = r;
ReportDocument crystalReport = new ReportDocument(); crystalReport.Load(@"C:\Documents and Settings\shawpnendu\My Documents\Visual Studio 2008\WebSites\Crystal Report 1\CrystalReport.rpt"); crystalReport.SetDatabaseLogon("sa","password",@".\SQLEXPRESS","TestDB"); crystalReport.SetDataSource(oSet); CrystalReportViewer1.ReportSource=crystalReport;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)