Exemple #1
0
 private void buttonSave_Click(object sender, RibbonControlEventArgs e)
 {
     if (Globals.ThisAddIn.Application.ActiveDocument != null)
     {
         Word2007OfficeDocument document = new Word2007OfficeDocument(Globals.ThisAddIn.Application.ActiveDocument);
         document.SaveToSite();
     }
 }
Exemple #2
0
        public void PublishTest()
        {
            Word2007OfficeDocument target = new Word2007OfficeDocument(Open(this.demoDoc));

            target.SaveToSite();
        }