Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: publish command fails with "??? Error using ==> saveas at 72 Invalid Simulink object specifier"
Replies: 1   Last Post: Jul 19, 2012 12:54 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Ratna Babu Chinnam

Posts: 3
Registered: 7/19/12
Re: publish command fails with "??? Error using ==> saveas at 72 Invalid Simulink object specifier"
Posted: Jul 19, 2012 12:54 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Tried the following Workaround from Bug Reports with no success:

http://www.mathworks.com/support/bugreports/659693

Workaround

Edit the following file, where MATLABROOT is the folder returned when you type matlabroot in the MATLAB Command Window:

MATLABROOT/toolbox/matlab/codetools/private/mxdom2word.m
Search for these lines,
try
doc.SaveAs(outputPath,wdFormatDocument);
catch anError
and replace them with these lines:
try
try
% This will work on Word 2010.
doc.SaveAs2(outputPath,wdFormatDocument);
catch %#ok<CTCH>
doc.SaveAs(outputPath,wdFormatDocument);
end
catch anError



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.