필터 지우기
필터 지우기

Warning: Could not start Excel server for export. XLSWRITE will attempt to write file in CSV format.

조회 수: 13 (최근 30일)
I have written a code recently. It would processes multiple images and then put the multiple outputs into an excel file. However, now when I run the code, the last image overrides all the other data. I also get this: Warning: Could not start Excel server for export. XLSWRITE will attempt to write file in CSV format.
I did just install Kutools for excel, but I have a feeling that that's what ruined the code now. I tried to uninstall it, and I think I did? Any advice is much appreciated. Thank you!
Here is the 'saving data' part of the code:
%File Location and File Name
xlFilename = 'C:\Users\X.xls';
xlRange = strcat('A',int2str(k));
%Change Sheet Name
xlwrite(xlFilename,A,'Test',xlRange);
  댓글 수: 1
Guillaume
Guillaume 2018년 7월 23일
The problem seems to be coming from excel that does not want to start properly. Add-ins indeed typically cause this sort of problems.
Does the following produce an error:
excel = actxserver('Excel.Application');
if not, to avoid leaving an invisible zombie excel, afterward:
excel.Quit;

댓글을 달려면 로그인하십시오.

채택된 답변

Victoria
Victoria 2018년 7월 23일
I was able to fix the problem myself. I just restarted my laptop. It seemed that Kutools was still 'installed' until I restarted. I believe Kutools was the initial problem.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by