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