Esempio n. 1
0
 /// <summary>
 /// Function to print
 /// </summary>
 /// <param name="fromDate"></param>
 /// <param name="toDate"></param>
 /// <param name="decSalesMan"></param>
 /// <param name="decCashOrParty"></param>
 /// <param name="strVoucherNo"></param>
 /// <param name="decVoucherTypeName"></param>
 /// <param name="strProductCode"></param>
 public void Print(DateTime fromDate, DateTime toDate, decimal decSalesMan, decimal decCashOrParty, string strVoucherNo, decimal decVoucherTypeName, string strProductCode)
 {
     try
     {
         DataSet   dsSalesReturnReport = spSalesReturnMaster.SalesReturnReportPrinting(fromDate, toDate, decSalesMan, decCashOrParty, strVoucherNo, decVoucherTypeName, strProductCode);
         frmReport frmReport           = new frmReport();
         frmReport.MdiParent = formMDI.MDIObj;
         frmReport.SalesReturnReportPrinting(dsSalesReturnReport);
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "SRRprt7:" + ex.Message;
     }
 }