示例#1
0
 private void LaunchExportPdf()
 {
     using (SaveFileDialog sfd = new SaveFileDialog())
     {
         sfd.FileName = "Export_" + _currentActivity.Name + ".pdf";
         sfd.Filter   = "PDF files (*.pdf)|*.pdf|All files (*.*)|*.*";
         if (sfd.ShowDialog() == DialogResult.OK)
         {
             _currentActivity.ExportPDF(sfd.FileName);
         }
     }
     SheetDisplayRequested?.Invoke(null);
 }
示例#2
0
 public void Test_project()
 {
     try
     {
         FinancialActivity pf = new FinancialActivity();
         pf.Balance();
         pf.ExportCSV();
         pf.ExportPDF(""); // TODO : see why this one have parameter
         pf.ExportTXT();
         pf.ExportWEB();
         pf.ExportXML();
         Assert.IsTrue(true);
     }
     catch (System.Exception exp)
     {
         Assert.Fail(exp.Message);
     }
 }