Wednesday, 16 September 2015

HOW TO PRINT A WORD FILE IN QTP



Steps:

Create object using word application
Open the desired document by using open method
Print the document by using printout method
Close the word document

Ans:
Set word = CreateObject("Word.Application")
Set objectdocument = word.Documents.Open("c:\test.docx")
objectdocument.PrintOut()
word.Quit


SUBSCRIBE YOUTUBE CHANNEL FOR LATEST VIDEOS
 https://www.youtube.com/channel/UC1EmncBu2maDiHNMNNqxw9g

No comments:

Post a Comment