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); }
public static void Quit(WordSaveOptions SaveOptions, object WordObject) { Quit(SaveOptions, WordObject, null); }