public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { crRights_Instrumens_Confirmations_Reports_Dse_21_14 rpt = new crRights_Instrumens_Confirmations_Reports_Dse_21_14(); rpt.Site = this.Site; return(rpt); }
private void btnViewReport_Click(object sender, EventArgs e) { Rights_Instrumens_Confirmation_Report_Dse_21_14_BAL objBAL = new Rights_Instrumens_Confirmation_Report_Dse_21_14_BAL(); DataTable data = new DataTable(); frmReportViewer rptviewer = new frmReportViewer(); crRights_Instrumens_Confirmations_Reports_Dse_21_14 objrpt = new crRights_Instrumens_Confirmations_Reports_Dse_21_14(); SetInputInfo(); data = objBAL.Reprot_dse_21(_custCode, _boid, dtpFromDate.Value, dtpToDate.Value, _instrumentId); objrpt.SetDataSource(data); ((TextObject)objrpt.Section2.ReportObjects["txtFromDate"]).Text = dtpFromDate.Value.ToString("dd/MM/yyyy"); ((TextObject)objrpt.Section2.ReportObjects["txtToDate"]).Text = dtpToDate.Value.ToString("dd/MM/yyyy"); rptviewer.crvReportViewer.ReportSource = objrpt; rptviewer.Show(); ResetInputInfo(); }