protected override void InitialiseRibbonFactoryController(IRibbonFactoryController controller, object application) { var app = (Application) application; excelViewProvider = new ExcelViewProvider(app); controller.Initialise(excelViewProvider); excelViewProvider.RegisterOpenDocuments(); }
protected override void InitialiseRibbonFactoryController(IRibbonFactoryController controller, object application) { var app = (Application)application; excelViewProvider = new ExcelViewProvider(app); controller.Initialise(excelViewProvider); excelViewProvider.RegisterOpenDocuments(); }
public override void Ribbon_Load(Microsoft.Office.Core.IRibbonUI ribbonUi) { //Excel does not raise a new document event when we are starting up, and initialise is too soon if (excelViewProvider != null) { excelViewProvider.RegisterOpenDocuments(); } base.Ribbon_Load(ribbonUi); }