예제 #1
0
 // Show tree form
 public void showTreeForm(Excel.Workbook workbook)
 {
     try
     {
         if (treeForm == null)
         {
             treeForm = new TreeForm(workbook, configXML);
         }
         else
         {
             treeForm.setApplication(workbook);
         }
         treeForm.Show();
         treeForm.startUp();
     }
     catch (Exception e)
     {
         throw e;
     }
 }
예제 #2
0
 // Show tree form
 public void showTreeForm(Word.Document document)
 {
     try
     {
         if (treeForm == null)
         {
             treeForm = new TreeForm(document, configXML);
         }
         else
         {
             treeForm.setApplication(document);
         }
         treeForm.Show();
         treeForm.startUp();
     }
     catch (Exception e)
     {
         throw e;
     }
 }
예제 #3
0
 // Show tree form
 public void showTreeForm(PowerPoint.Presentation presentation)
 {
     try
     {
         presentation.Save(); // Saves the document
         if (treeForm == null)
         {
             treeForm = new TreeForm(presentation.FullName, configXML);
         }
         else
         {
             treeForm.setApplication(presentation.FullName);
         }
         treeForm.Show();
         treeForm.startUp();
     }
     catch (Exception e)
     {
         throw e;
     }
 }