Need help to read a word document from some location through QTP script and verify some fields in it.
Need help to read a word document from some location through QTP script and verify some fields in it.
Please refer the Manual of Microsoft word there are API's available for controls available in Microsft word..
You can use VBscript to instantiate the word Document and perform validations on the controls.
Regards,
Nawab
can some one give me clear idea
Create a new (empty) Word Document and save it to c:\testdoc.doc
Set objWord = CreateObject(”Word.Application”)
‘note: if you don’t want word popping up and displaying as this is built– set this next line to False
objWord.Visible = True
Set objDoc = objWord.Documents.Add()
’save the Word Document
objDoc.SaveAs(”C:\testdoc.doc”)