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 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