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