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