Exemplo n.º 1
0
 /// <summary>
 /// Function to print the voucher
 /// </summary>
 /// <param name="decMasterId"></param>
 public void Print(decimal decMasterId)
 {
     try
     {
         DebitNoteMasterSP SpDebitNoteMaster = new DebitNoteMasterSP();
         DataSet dsDebitNoteVoucher = SpDebitNoteMaster.DebitNotePrinting(decMasterId, 1);
         frmReport frmReport = new frmReport();
         frmReport.MdiParent = formMDI.MDIObj;
         frmReport.DebitNotePrinting(dsDebitNoteVoucher);
     }
     catch (Exception ex)
     {
         MessageBox.Show("DRNT26:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }