/// <summary>
 /// Function to print the form
 /// </summary>
 public void Print()
 {
     try
     {
         string  strFromDate      = txtFromDate.Text.ToString();
         string  strToDate        = txtToDate.ToString();
         decimal decVoucherTypeId = Convert.ToDecimal(cmbVouchertype.SelectedValue.ToString());
         decimal decLedgerId      = Convert.ToDecimal(cmbAccountLedger.SelectedValue.ToString());
         PDCReceivableMasterSP SpPdcreceivable = new PDCReceivableMasterSP();
         DataSet   dsPdcReceivableReport       = SpPdcreceivable.PdcreceivableReportPrinting(Convert.ToDateTime(dtpFrmDate.Value.ToString()), Convert.ToDateTime(dtpToDate.Value.ToString()), cmbVouchertype.Text.ToString(), cmbAccountLedger.Text.ToString(), Convert.ToDateTime(dtpCheckDateFrom.Value.ToString()), Convert.ToDateTime(dtpCheckDateTo.Value.ToString()), txtCheckNo.Text.Trim(), txtVoucherNo.Text.Trim(), cmbStatus.Text.Trim(), 1);
         frmReport frmReport = new frmReport();
         frmReport.MdiParent = formMDI.MDIObj;
         frmReport.PdcreceivablereportReportPrinting(dsPdcReceivableReport);
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "PRREP6:" + ex.Message;
     }
 }