Login   /   Register

Open and print MS-Word document

Rate this article
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...
April 1st, 2008 by daniva

Demonstration script that opens and prints and existing Microsoft Word document.

Set word = CreateObject( "Word.Application" )
Set doc = word.Documents.Open( "c:\documents\report.doc" )
 
doc.PrintOut()
word.Quit

Posted in MS-Word

One Response to “Open and print MS-Word document”

  1. cthatipelli Says:

    [+]

    while running the qtp scripts in server machine thru remote desktop machine tool. tool is not identifying the objects properly. an... ...

Leave a Reply

You must be logged in to post a comment.

This article was viewed 313 times