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