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
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 |
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 |
How can I replace all the text from the QTP script with some other text.
How to create log file in qtp?
What is object identification?
Can I record on netscape browser does it require any special settings ?
Hi Friends, How many types of Data Bases available in market... What is the diff. while using Syabase and Oracle in a Project... ? and what is the main diff. of Syabase and Oracle databases... ? Thanx in advance..
What is the difference between driver-script and AOM-script?
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.
Hello friends..... On which areas of an application we can not test with QTP
0 Answers Thatavarti Technologies,
Describe the process for writing text check point for a web application?
What is the syntax to call one action in another?
why we use sendkey method in qtp?
hi Action 1 and action2 if we save it in C:, what folders will be created explain plz