Ejemplo n.º 1
0
 /// <summary>
 /// Function for Print
 /// </summary>
 /// <param name="fromDate"></param>
 /// <param name="toDate"></param>
 public void Print(DateTime fromDate, DateTime toDate)
 {
     try
     {
         DataSet   dsFundFlow = GetdataSet();
         frmReport frmReport  = new frmReport();
         frmReport open       = Application.OpenForms["frmReport"] as frmReport;
         if (open == null)
         {
             frmReport.MdiParent = formMDI.MDIObj;
             frmReport.FundFlow(dsFundFlow);
             frmReport.Show();
         }
         else
         {
             open.Activate();
             open.FundFlow(dsFundFlow);
             if (open.WindowState == FormWindowState.Minimized)
             {
                 open.WindowState = FormWindowState.Normal;
             }
         }
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "FF4:" + ex.Message;
     }
 }