How to install the actxserver function to read word file ?

3 vues (au cours des 30 derniers jours)
RogerLM
RogerLM le 9 Sep 2017
Commenté : RogerLM le 10 Sep 2017
I would like to read some word file using matlab, and I found that I could use actxserver function but it seems it's not install in my matlab version ? Do you know how I can fix it ? Thanls

Réponses (1)

Walter Roberson
Walter Roberson le 9 Sep 2017
actxserver() is only available on MS Windows versions of MATLAB.
There is no way to use ActiveX to control MS Word on OS-X.
  5 commentaires
Walter Roberson
Walter Roberson le 9 Sep 2017
See https://api.libreoffice.org/ for the interface documentation. Java interface is documented and C++ interface is documented. You should be able to use either.
You might have to add to the Java Class Path to use the java interface from within MATLAB.
To use the C++ interface you would use loadlibrary()
RogerLM
RogerLM le 10 Sep 2017
Great! Thanks !

Connectez-vous pour commenter.

Catégories

En savoir plus sur Use COM Objects in MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by