Why do I get the error "Server Creation Failed: The system cannot find the path specified" ?

조회 수: 10 (최근 30일)
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?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2019년 7월 30일
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개)

카테고리

Help CenterFile Exchange에서 Use COM Objects in MATLAB에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by