Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
spell checking of web objects
#1
Not Solved
I have written the following code to test the spell checking

Code:
Set M_Word = CreateObject("Word.Application")
Dim Desc
Set Desc=Description.Create                                                                                                  
Desc("micclass").Value = "Link"
                                                                                                                                                            
Set Total_Links=Browser("SomeName").Page("SomeName").ChildObjects(Desc)
a =Total_Links.Count                                              
For i=0 to a-1
M_Word.WordBasic.filenew                                                                                                        
Link_Name=Total_Links(i).GetROProperty("name")                                                            
M_Word.WordBasic.insert Link_Name                                                                                    
If M_Word.ActiveDocument.Spellingerrors.count>0 then
    Reporter.ReportEvent micPass, "Spelling " , "Spelling Error: " & Link_Name

End if
M_Word.ActiveDocument.Close(False)
next
M_Word.quit
Set M_Word=nothing
when I execute this Iam getting the following error

ActiveX component can't create object: 'Word.Application'

Line (1): "Set M_Word = CreateObject("Word.Application")".

I need help in this. Thanks in advance.[/quote]
Reply
#2
Not Solved
Do you have MS Word installed on the system?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#3
Not Solved
Your code is working fine when i executed.

As basanth told check whether MS word is installed on your machine
Reply
#4
Not Solved
Please ensure to include your code between [code] tags while asking or replying to questions. I have done this for you for this time.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Smile If Then Is Always True For Web Objects zunebuggy 1 993 04-17-2020, 04:30 AM
Last Post: zunebuggy
  How to connect two web element objects? zawarepradeep@gmail.com 1 2,690 07-23-2014, 11:23 PM
Last Post: Ankur
  Spy is not deteting Web objects ssandula 0 1,960 11-25-2013, 04:33 PM
Last Post: ssandula
  Unable to identify the Web Objects in QTP 10 +IE 8 in Windows7 mahesh1612 2 4,376 02-08-2013, 03:26 PM
Last Post: mahesh1612
  QTP 11 not identifying IE9 web objects on run-time Surya 3 5,198 01-31-2013, 02:02 AM
Last Post: newqtp

Forum Jump:


Users browsing this thread: 1 Guest(s)