public DataSet JournalReportPrinting(string strFromDate, string strToDate, decimal decVoucherTypeId, decimal decLedgerId, decimal decCompanyId) { DataSet dsJournalReportPrint = new DataSet(); try { dsJournalReportPrint = spJournalMaster.JournalReportPrinting(strFromDate, strToDate, decVoucherTypeId, decLedgerId, decCompanyId); } catch (Exception ex) { MessageBox.Show("JVBLL14:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(dsJournalReportPrint); }
/// <summary> /// Print function /// </summary> public void Print() { try { if (dgvJournalReport.Rows.Count > 0) { string strFromDate = txtFromDate.Text; string strToDate = txtToDate.Text; decimal decVoucherTypeId = Convert.ToDecimal(cmbVoucherType.SelectedValue.ToString()); decimal decLedgerId = Convert.ToDecimal(cmbAccountLedger.SelectedValue.ToString()); JournalMasterSP SpJournalMaster = new JournalMasterSP(); DataSet dsJournalReport = SpJournalMaster.JournalReportPrinting(strFromDate, strToDate, decVoucherTypeId, decLedgerId, 1); frmReport frmRepor = new frmReport(); frmRepor.MdiParent = formMDI.MDIObj; frmRepor.JournalreportReportPrinting(dsJournalReport); } } catch (Exception ex) { MessageBox.Show("JVREP6:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }