Trouble publishing to a Word Doc

5 ビュー (過去 30 日間)
Gregory Vernon
Gregory Vernon 2011 年 5 月 2 日
When I try to publish as a Word Doc, I recieve the following error
??? Error using ==> mxdom2word at 15
Microsoft Word must be installed to publish to this format.
Error in ==> publish at 183
mxdom2word(dom,outputAbsoluteFilename);
Error in ==> mdbpublish at 55
outputPath = publish(file, options);
??? Error using ==> open at 68
NAME must contain a single string.
I DO have Microsoft Office (Word) installed, so I don't understand where the problem lies. Ideas?

回答 (1 件)

Kaustubha Govind
Kaustubha Govind 2011 年 5 月 3 日
The PUBLISH command attempts to start up Word as a COM server to perform the operation, so I think the real problem here is that MATLAB is unable to do that. You could verify this by running this command at the MATLAB prompt:
h = actxserver('Word.Application')
What error do you see?
Also, do you run MATLAB as administrator? Another option is to try starting Word as a COM server outside of MATLAB (potentially using a VBA script) to see if that works.
  2 件のコメント
Gregory Vernon
Gregory Vernon 2011 年 5 月 3 日
>> h = actxserver('Word.Application')
??? Error using ==> actxserver at 91
Server creation failed. Invalid ProgID 'Word.Application'
It makes no difference whether I run as administrator or not.
Kaustubha Govind
Kaustubha Govind 2011 年 5 月 3 日
It looks like MS Word is not registered as a COM Server in the Windows Registry for some reason. Unfortunately, I don't have much experience with debugging this. Maybe you could try re-installing Word, or check with your system admin to see if starting Word as a COM Server is blocked?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by