コード例 #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;
     }
 }