public ExternalCommandResult Execute(Application excelApp, ref string errorMessage, ref Range errorRange) { var s = new A3PageSetup(); return(AddinManagerDebuger.DebugInAddinManager(s.SetupA3Page, excelApp, ref errorMessage, ref errorRange)); }
private void button_A3PageSetup_Click(object sender, RibbonControlEventArgs e) { Application app = Globals.ThisAddIn.Application; // var ps = new PrintingFormat.A3PageSetup(); AddinManagerDebuger.ExecuteInRibbon(ps.SetupA3Page , app, ref _errorMessage, ref _errorRange); }