Esempio n. 1
0
 /// <summary>
 /// Function to print the DayBook
 /// </summary>
 /// <param name="fromDate"></param>
 /// <param name="toDate"></param>
 /// <param name="decVoucherTypeId"></param>
 /// <param name="decLedgerId"></param>
 /// <param name="blCondenced"></param>
 public void Print(DateTime fromDate, DateTime toDate, decimal decVoucherTypeId, decimal decLedgerId, bool blCondenced)
 {
     try
     {
         DataSet dsDayBookReport = getdataset();
         DataSet dsDayBookReportCondensed = getdatasetCondensed();
         frmReport frmReport = new frmReport();
         frmReport.MdiParent = formMDI.MDIObj;
         if (rbtnCondensed.Checked == true)
         {
             frmReport.dayBookReportPrintingCondensed(dsDayBookReportCondensed);
         }
         else
         {
             frmReport.dayBookReportPrintingDetailed(dsDayBookReport);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("DB8:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }