示例#1
0
        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));
        }
示例#2
0
        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);
        }