how to record a word doc using qtp i.e open a word doc,type
something and save the doc
can someone send me the code.
Answers were Sorted based on User's Feedback
Answer / ashok
This did not work. Displayed error " Object doesn't
support th is property or method 'doc.selection'
Can you please also send code for the following:"
Read word doc. Get font. Get Italic. Get Bold.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vijay
Set word = CreateObject("Word.Application")
Set doc = word.documents.Add
word.visible = True
word.selection.typetext " Open MSWord"
doc.saveAs "C:vin.doc"
word.quit
Set word = nothing
Set doc = nothing
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / chaitu
Dim word
Dim doc
Set word = CreateObject("Word.Application")
Set doc = word.documents.Add
word.visible = True
doc.selection.typetext " Open MSWord"
doc.saveAs "C:\chaitu.doc"
word.quit
Set word = nothing
Set doc = nothing
| Is This Answer Correct ? | 1 Yes | 3 No |
How many types of trigger events are there in qtp?
How to execute the WR Script through QTP? I have WinRunner script with initialization script, common scripts, GUI AND functions. I connected WR through QTP with "call to WinRunner" option but I am getting problem after connecting to WinRunner i.e. showing "Do you want to quit now" with 'yes' and 'No' message box
What is QTP and the use of QTP in TD?
I have 5 no.of Action in my Test. Out off which i should make 3rd action as my start-up action. How should i make it?
in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded
hi gavasker i want how to merg OR's in QTP 8.2 by QTP Plus
How many ways we can parameterize data in QTP?
write a qtp script to enter user name & password for flight reservation login page from excel sheet
draw the qtp frame work?
hello...any one tell me , where can i get company email id.. actually i am searching on testing... in my CV i put 3+ exp.. but all companies are asked company email id.. please provide solution for that... thanx in advance...
What is the difference between keyword view and expert view?
In QTP can we feed the out of one browser(internet explorer) as an input to the another browser(mozilla firefox)? If yes explain how to do it with an example.