Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

we are submitting data one form to another form.defaultly it is time period set as 5sec. but it is taken 15sec what to do

5 Answers   Covansys,


Is it possible to map an image as standard Object or u've to treat as virtual? how to map an Dynamic image into standard object?

1 Answers  


How to handle dynamic objects in QTP?

4 Answers   Infosys,


what is the extension for QTP files?

16 Answers   American Solutions,


Can i get a simple example exercise for update run mode for sample flight application......... In qtp when i try to run the test in update mode.. Auotmation> update option is disabled............ Pls let me know ................. Thanks in advance.....

3 Answers  


What is Environment Variable and when we apply this in QTP?

3 Answers   TCS,


How to do the scripting. Is there any inbuilt functions in QTP as in QTP-S. Whatz the difference between them? how to handle script issues?

2 Answers  


How can i open a file in Textpad and replace a string with another using QTP

1 Answers   Wipro,


what type of automation is follwed in the project?

0 Answers   Google,


Is it possible to check the Run time value property of a field through a Database Checkpoint ? Further, is it possible to localize and mention a particular cell , in the database dynamically. My requirement is that I would need to check the status of a particular field , that would change from an "Active" state to a "Stopped" state dynamically.

1 Answers   CTS,


in a web page How to check and display a particular word from a paragraph?

0 Answers  


how to test background color and dynamic images during runtime

4 Answers   CTS,


Categories