BusinessLogic.BLReport objBL = new BLReport();
DataSet objDs = new DataSet();
int iMemberId = 0;
iMemberId = Convert.ToInt32(lstMember.SelectedValue);
objDs = objBL.GenerateReport(iMemberId);
string strReportPath = string.Empty;
strReportPath = "C:\\MemberInsurance\\Report\\Report1.rpt";
CrystalDecisions.CrystalReports.Engine.ReportDocument rptDocument = new ReportDocument();
rptDocument.Load(strReportPath);
rptDocument.SetDataSource(objDs.Tables[0]);
rptViewer.ReportSource = rptDocument;
|