public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { cr_AccountImageList rpt = new cr_AccountImageList(); rpt.Site = this.Site; return(rpt); }
private void AccountImageList() { try { SaveImgBAL objImage = new SaveImgBAL(); DataTable data = new DataTable(); cr_AccountImageList objcrAccountImageList = new cr_AccountImageList(); frmReportViewer objfrmReportViewer = new frmReportViewer(); data = objImage.GetAccountImageList(ddlDoucmentType.SelectedIndex); objcrAccountImageList.SetDataSource(data); ((TextObject)objcrAccountImageList.ReportDefinition.Sections[2].ReportObjects["txtReportType"]).Text = ddlDoucmentType.Text + " Report"; GetCommonInfo(); ((TextObject)objcrAccountImageList.ReportDefinition.Sections[2].ReportObjects["txtCompanyName"]).Text = _CommpanyName; ((TextObject)objcrAccountImageList.ReportDefinition.Sections[2].ReportObjects["txtAddress"]).Text = "Branch Name:" + _branchName + "," + _branchAddress + ". Phone:" + _branchContactNumber; objfrmReportViewer.Text = "Account Image List"; objfrmReportViewer.crvReportViewer.DisplayGroupTree = false; objfrmReportViewer.crvReportViewer.ReportSource = objcrAccountImageList; objfrmReportViewer.Show(); } catch (Exception) { throw; } }