Why do I get the error "Server Creation Failed: The system cannot find the path specified" ?
10 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2019-5-20
回答: MathWorks Support Team
2019-7-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
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Use COM Objects in MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!