BIMK / PlatEMO

Evolutionary multi-objective optimization platform
1.5k stars 455 forks source link

MacOS下无法保存实验结果 #127

Open lisccc opened 1 year ago

lisccc commented 1 year ago

MacOS在导出Excel时出现以下报错信息,有什么替代actxserver的函数可以使用呢

错误使用 actxserver
创建服务器失败。ProgID 'Excel.Application' 无效。

出错 module_exp>table2excel (第 666 行)
        Excel = actxserver('Excel.Application');

出错 module_exp/cb_save (第 563 行)
                                table2excel(fullfile(Path,Name),obj.app.dropC(1).Value,[{'Problem'},obj.app.table.ColumnName';obj.app.table.RowName,obj.app.table.Data],cat(1,obj.app.table.StyleConfigurations.TargetIndex{:}),size(obj.data.result,2));

出错 module_exp>@(varargin)obj.cb_save(varargin{:}) (第 75 行)
            obj.app.toolC(1)   = uibutton(tempPanel,'Position',[-2.5 -2.5 24 24],'Text','','Icon',obj.GUI.icon.savetable,'BackgroundColor',[.95 .95 1],'Tooltip','Save the table','ButtonpushedFcn',@obj.cb_save);

错误使用 matlab.ui.control.internal.controller.ComponentController/executeUserCallback
计算 Button PrivateButtonPushedFcn 时出错。
image