public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { crptCashFlow rpt = new crptCashFlow(); rpt.Site = this.Site; return(rpt); }
/// <summary> /// Function to print CashflowReport in curresponding Crystal report /// </summary> /// <param name="dsCashFlowReport"></param> internal void CashflowReportPrinting(DataSet dsCashFlowReport) { try { crptCashFlow crptCashFlow = new crptCashFlow(); foreach (DataTable dtbl in dsCashFlowReport.Tables) { if (dtbl.TableName == "Table1") { crptCashFlow.Database.Tables["dtblCashflow"].SetDataSource(dtbl); } else if (dtbl.TableName == "Table2") { crptCashFlow.Database.Tables["dtblCompany"].SetDataSource(dtbl); } } this.crptViewer.ReportSource = crptCashFlow; SettingsSP spSettings = new SettingsSP(); if (spSettings.SettingsStatusCheck("DirectPrint") == "No") { base.Show(); this.BringToFront(); } else { crptCashFlow.PrintToPrinter(1, false, 0, 0); } } catch (Exception ex) { MessageBox.Show("CRCF" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { crptCashFlow rpt = new crptCashFlow(); rpt.Site = this.Site; return rpt; }