public static void Close(WordSaveOptions SaveOptions, object WordDocument)
 {
     object[] Parameters = InitializeParameters(3);
     Parameters[0] = SaveOptions;
     WordDocument.GetType().InvokeMember("Close", BindingFlags.InvokeMethod, null, WordDocument, null);
     System.Runtime.InteropServices.Marshal.ReleaseComObject(WordDocument);
     GC.Collect(); // force final cleanup!
 }
Example #2
0
 public static void Close(WordSaveOptions SaveOptions, object WordDocument)
 {
     object[] Parameters = InitializeParameters(3);
     Parameters[0] = SaveOptions;
     WordDocument.GetType().InvokeMember("Close", BindingFlags.InvokeMethod, null, WordDocument, null);
     System.Runtime.InteropServices.Marshal.ReleaseComObject(WordDocument);
     GC.Collect();             // force final cleanup!
 }
 public static void Quit(WordSaveOptions SaveOptions, object WordObject)
 {
     Quit(SaveOptions,WordObject,null);
 }
Example #4
0
 public static void Quit(WordSaveOptions SaveOptions, object WordObject)
 {
     Quit(SaveOptions, WordObject, null);
 }