How to publish code as a Word document on a Mac?
15 views (last 30 days)
Show older comments
Ward on 29 Nov 2012
Answered: ZHONGQIAN SHANGGUAN on 15 Jun 2020
I have Mac Office 2011 and R2012b, yet I haven't been able to publish .m code as a word document.
results in the following error:
"Error using mxdom2word (line 9) Publishing to Microsoft Word is only supported on the PC."
Really? This basic operation isn't supported? Is there a work-around?
Walter Roberson on 29 Nov 2012
Likely the communications with MS Word is handled via ActiveX, which is not present in OS-X.
Ken Atwell on 29 Nov 2012
Walter is right, publishing to Microsoft Word is performed with Active-X, a technology specific to Windows.
As an alternative, would publishing to HTML or PDF (supported on Macs) be workable for you?
More Answers (2)
Matthew Simoneau on 29 Nov 2012
A workaround is to publish to HTML, open the HTML up in Word, and then save as Word.
John Ondov on 18 Feb 2016
Great idea! May not be perfect,but better than trying to convert pdf to word - at least as far as I know!
ZHONGQIAN SHANGGUAN on 15 Jun 2020
When I used the code to publish my file, i just got the following error info:
Publishing to Microsoft Word is only supported on the PC.
Find more on ActiveX in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!