Why do I get the error "Server Creation Failed: The system cannot find the path specified" ?
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 20 Mai 2019
Beantwortet: MathWorks Support Team
am 30 Jul. 2019
I am trying to create a COM server for Microsoft Word in MATLAB, however I run into an error:
>> w = actxserver('Word.Application');
>> w.Visible = true;
Error using feval
Server Creation Failed: The system cannot find the path specified.
Error in actxserver (line 89)
h=feval(['COM.' convertedProgID], 'server', machinename, interface);
How can I resolve this error?
Akzeptierte Antwort
MathWorks Support Team
am 30 Jul. 2019
To troubleshoot this issue, please create a file "test.vbs" with the following content:
set w = CreateObject("Word.Application")
w.Visible = 1
MsgBox "Success"
You can create this .vbs file from Notepad++.
Once created, from the Windows File Explorer, double click on the "test.vbs" file.
This should throw an error window with the following message:
The system cannot find the path specified.
To resolve this issue, please reinstall Office.
If the issue persists, you should contact Microsoft Technical Support.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Use COM Objects in MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!