vb6 - Copy content of word document to another -
how may copy content of 1 word document ? it's text only...
i'm opening like:
dim word_app word.application dim word_doc word.document set word_app = new word.application set word_doc = word_app.documents.add(documenttype:=wdnewblankdocument) word_app.documents.open "c:\test.rtf"
ok, know how open it. need copy it's content , paste new document... how?
just use word_doc.saveas
(once you've set word_doc
properly) , re-open under different instance.
more features can discovered here: http://msdn.microsoft.com/en-us/library/office/ff840898.aspx
Comments
Post a Comment