public override void Activate() { if (ExternalDoc != null) { ExternalDoc.Activate(); } }
public override void Close() { try { if (ExternalDoc != null) { ExternalDoc.Close(); } if (ExternalApp != null) { ExternalApp.Quit(false); ExternalApp = null; } } catch { } finally { ExternalDoc = null; GC.Collect(); IsOpend = false; } }