Is it possible for QTP to capture the objects in word
document.If so please give me the code.Thank you.

Answers were Sorted based on User's Feedback



Is it possible for QTP to capture the objects in word document.If so please give me the code.Thank..

Answer / nath .t

Dim Word, Doc, Uncorrected, Corrected
Const wdDialogToolsSpellingAndGrammar = 828
Const wdDoNotSaveChanges = 0

Uncorrected = "Helllo world!"
Set Word = CreateObject("Word.Application")
Set Doc = Word.Documents.Add
Word.Selection.Text = Uncorrected
Word.Dialogs(wdDialogToolsSpellingAndGrammar).Show

If Len(Word.Selection.Text) <> 1 Then
Corrected = Word.Selection.Text
Else
Corrected = Uncorrected
End If
msgbox corrected
Doc.Close wdDoNotSaveChanges
Word.Quit

Is This Answer Correct ?    3 Yes 1 No

Is it possible for QTP to capture the objects in word document.If so please give me the code.Thank..

Answer / anu

It is possible to capture objects in Word Document.
Tables will be there and few will be read as paragraph

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

can any one tel ,using simple string a[0]=I a[1]=N a[2]=D like that it go's . . out put i need INDIA help me it's really need full ..

3 Answers   Mind Tree,


What is the difference between client server application and web based application?

1 Answers   IBM,


Can you expect major bugs in Net banking Application?

1 Answers  


QTP in mumbai

0 Answers  


Hi, When I click on a hyperlink a secondary pop-window will open. In that pop-up window there will be 'N' number of records arranged in with paging option in datagrid table. Each rows contains two columns, one is text and the other is a radio button. I will pass the first column value and based in it the tool have to select the corresponding radio button in that row. Please someone help me how to handle this as am new to QTP.

2 Answers   CTS,


In VSS, HoW the documents send to local folder? copy paste or any other? plz explain about VSS TOOL kit?

2 Answers   Oracle,


How qtp identifies objects?

0 Answers  


what is virtual object?

2 Answers  


In real time whenever we found bug , after that where you send to that bug. send to T.Lead or Directly Developer. Plz explain me?

2 Answers  


What is the difference between Systemutil.run and Navigate.

6 Answers   Synechron,


what is error and fault in terms of software quality?

0 Answers   TCS,


can any one tell me the script to click on a button in the wintoolbar.

1 Answers  


Categories