Exemple #1
0
 void MainFormFormClosed(object sender, FormClosedEventArgs e)
 {
     if (WdTools != null)
     {
         try {
             WdTools.Dispose();
         } catch {
             Console.WriteLine("Closing Word application failed. Kill winword.exe process manualy.");
         }
     }
 }