/// <summary> /// Function to print the details /// </summary> public void Print() { try { if (dgvDebitNoteReport.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()); DebitNoteMasterSP SpDebitNoteMaster = new DebitNoteMasterSP(); DataSet dsDebitNoteReport = SpDebitNoteMaster.DebitNoteReportPrinting(strFromDate, strToDate, decVoucherTypeId, decLedgerId, 1); frmReport frmReport = new frmReport(); frmReport.MdiParent = formMDI.MDIObj; frmReport.DebitNoteReportPrinting(dsDebitNoteReport); } } catch (Exception ex) { MessageBox.Show("DRNTREP6:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to print the details /// </summary> public void Print() { try { if (dgvDebitNoteReport.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()); DebitNoteMasterSP SpDebitNoteMaster = new DebitNoteMasterSP(); DataSet dsDebitNoteReport = SpDebitNoteMaster.DebitNoteReportPrinting(strFromDate, strToDate, decVoucherTypeId, decLedgerId, 1); frmReport frmReport = new frmReport(); frmReport.MdiParent = formMDI.MDIObj; frmReport.DebitNoteReportPrinting(dsDebitNoteReport); } } catch (Exception ex) { MessageBox.Show("DRNTREP6:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }