Reading Excel files on a server without Excel installed.

8 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Introduction 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