Пример #1
0
 public static void DmfSaveAs(this Wd.Document Doc)
 {
     var view = new WaitingView();
     view.Show();
     try
     {
         dynamic dmfService = Doc.Application.COMAddIns.Find("MacroView.DMF.Word").Object;
         dmfService.ShowSaveAsDialog();
     }
     finally
     {
         view.Close();
     }
 }
Пример #2
0
 public static void DmfSaveAs(this Wd.Document doc, Hashtable properties = null, bool StandardSaveOnCancel = true)
 {
     var view = new WaitingView();
     view.Show();
     try
     {
         var service = (DmfDocumentAutomationService)doc.Application.COMAddIns.Find(Settings.Default.DMFWordAddin).Object;
         if (!service.SaveAs(ref properties, null, true, false) && StandardSaveOnCancel)
             doc.Application.Dialogs[Wd.WdWordDialog.wdDialogFileSaveAs].Show();
     }
     finally
     {
         view.Close();
     }
 }