I need to know how to write text into an open Word document. I used this code to open the word application:
word = actxserver('word.application'); set(word,'visible',1); doc1 = invoke(word.documents,'add'); invoke(doc1.paragraphs,'add'); range = invoke(doc1,'range',doc1.Paragraphs.Item(1).range.Start);
I need to write several lines of text and two plots into this document. How do I do this?
Best Answer