How to publish code as a Word document on a Mac?
Mostrar comentarios más antiguos
I have Mac Office 2011 and R2012b, yet I haven't been able to publish .m code as a word document.
publish('my_fun.m','doc')
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?
Respuesta aceptada
Más respuestas (2)
Matthew Simoneau
el 29 de Nov. de 2012
0 votos
A workaround is to publish to HTML, open the HTML up in Word, and then save as Word.
3 comentarios
Ward
el 29 de Nov. de 2012
Terrance Nearey
el 9 de Feb. de 2013
This has other drawbacks. For example, Line breaks appear not to be preserved. Seems like a bug in Word 2011.
John Ondov
el 18 de Feb. de 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
el 15 de Jun. de 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.
Categorías
Más información sobre ActiveX en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!