XLSWRITE Error: The server threw and exception

When I try to use the xlswrite function to export a matrix to Excel, I get the following error:
??? Error using ==> xlswrite at 211 Error: The server threw an exception
I've tried deactivating all add-ins in Excel

1 件のコメント

Jason Ross
Jason Ross 2011 年 5 月 5 日
Can you get the actual error message?

サインインしてコメントする。

回答 (2 件)

Leah
Leah 2011 年 5 月 5 日

0 投票

how big is your matrix?

2 件のコメント

Eric
Eric 2011 年 5 月 5 日
I tried writing out a column vector of length 2*1048576 to Excel 2010 (twice the maximum number of rows in Excel) and got a different error message. That gave
??? Error using ==> xlswrite at 213
Excel returned: Error: Object returned error code: 0x800A03EC.
Oleg Komarov
Oleg Komarov 2011 年 5 月 5 日
Still wondering why did you get that error?

サインインしてコメントする。

XM Liu
XM Liu 2016 年 11 月 17 日

0 投票

1- open the excel> file, >option, >add in, manage then select COM ADD IN, and clear everything (unchecked). everything should be cleared (unchecked). 2- restart the PC, and open the matlab. 3- perform xlsread command.
PS. For those people who use foxit pdf reader, it is potential to face this problem, so follow mentioned order.

1 件のコメント

Li Duo
Li Duo 2018 年 3 月 27 日
It works and thanks a lot.

サインインしてコメントする。

質問済み:

2011 年 5 月 5 日

コメント済み:

2018 年 3 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by