Esempio n. 1
0
 private void buttonSave_Click(object sender, RibbonControlEventArgs e)
 {
     if (Globals.ThisAddIn.Application.ActiveWorkbook != null)
     {
         Excel2007OfficeDocument document = new Excel2007OfficeDocument(Globals.ThisAddIn.Application.ActiveWorkbook);
         document.SaveToSite();
     }
 }
Esempio n. 2
0
 private void buttonCleanPropeties_Click(object sender, RibbonControlEventArgs e)
 {
     if (Globals.ThisAddIn.Application.ActiveWorkbook != null)
     {
         Excel2007OfficeDocument document = new Excel2007OfficeDocument(Globals.ThisAddIn.Application.ActiveWorkbook);
         document.DeleteAsociation();
     }
 }