Reading Excel files on a server without Excel installed.

8 ビュー (過去 30 日間)
Julien Damond
Julien Damond 2019 年 8 月 8 日
回答済み: Julien Damond 2019 年 8 月 20 日
Hello,
I'm currently using Matlab on a new server on which no Excel is installed. I need to be able to read Excel files. Unfortunately, the basic read mode from Matlab is not sufficent for some xlsx files. How can I still read these files ?
I'm using Matlab 2015a on Windows Server 2012.
Thank you for your help.
  1 件のコメント
Abhilash Padma
Abhilash Padma 2019 年 8 月 13 日
It is possible to read excel files without Excel installed. You can use xlsread and readtable methods in basic mode to achieve this.But, you are mentioning that basic read mode from Matlab is not sufficent for some xlsx files. What do you mean by 'not sufficient'? Are you getting any error if you use these methods?

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

回答 (1 件)

Julien Damond
Julien Damond 2019 年 8 月 20 日
Hello Abhilash,
Thank you for your response. The problem I have is when writing a formatted Excel Sheet with xlsread without Excel installed. For example, one of the problems I have encountered is an error being thrown by the function biffparse:
[num, txt, raw] = xlsread( fileName );
which gives me the error
Error using xlsread (line 247)
File could not be read by biffparse. Invalid record ID.
I've found in another post that reading files with xlsRead without Excell installed has also some limitations
Finally, I write a Java code using the POI library from Apache that I compiled as jar and directly use in Matlab to read Excel files without Excel installed.
Best regards,

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by