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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -