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