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 |
Inserting a Call to Action is not Importing all columns in Datatable of globalsheet. Why?
What is difference between shared and local object repository?
we add library file used in test via settings or through "ExecuteFile" command. when we implement framework do we make common library file and load the same for all the test cases execution?
What is the difference between Dim And Redim
4 Answers Hotel Jobs, IBM, Microsoft,
When should u feel that u can stop testing now? The following are few of the common Test Stop criteria:
what is qtp automation framework, what is the purpose of the framework and which folders included in this framework pls tell me with brief description
Can you tell me any books or websites to learn VB Script for QTP ??
What is Curd testing?
Please anybody can tell the where can i get the information about pharma and bank testing, i put the pharma&bank projects in my resume, so i dont know what to tell about them, so where can i get the information and what we test for these, i need domain information, what r the screen we test?
QTP Testing Process?
Hi Samrat, Thank u very much, what u said it is right.
Get the count of files of similar types from a folder.