Posts: 126
Threads: 18
Joined: Mar 2010
Reputation:
0
04-07-2011, 12:21 PM
Hello All,
I have to send mails from Outlook through QTP. I encountered "ActiveX component can't create object: "Outlook.Application" error when ran my code.
Can anybody help me doing it?
Note: Refer to the attached screenshot
Attached Files
Image(s)
Posts: 5
Threads: 0
Joined: Apr 2011
Reputation:
0
04-07-2011, 01:05 PM
Hi Prabhat,
Is outlook installed on your machine?
Posts: 126
Threads: 18
Joined: Mar 2010
Reputation:
0
04-07-2011, 02:20 PM
Hi Nilesh,
Yes, outlook is installed in my machine. I have associated ActiveX addin also.
Posts: 5
Threads: 0
Joined: Apr 2011
Reputation:
0
04-07-2011, 03:54 PM
Hi Prabhat,
i think there is problem with outlook installation use 'Detect and Repair' option in Outlook.
Maybe that will fix it.
Regards
Nilesh
Posts: 126
Threads: 18
Joined: Mar 2010
Reputation:
0
04-07-2011, 05:10 PM
Hi Nilesh,
Do i need to reinstall outlook in way to chose Detect and Repair or do we have an option in the outlook to do so?
Posts: 5
Threads: 0
Joined: Apr 2011
Reputation:
0
04-07-2011, 05:14 PM
yes you need to re-install it,Detect and Repair option will come up if already Outlook is installed. before that close all the application and restart the machine before and after the installation
Posts: 126
Threads: 18
Joined: Mar 2010
Reputation:
0
04-08-2011, 11:18 AM
It didn't help either.
Can anybody come up with anything else?
Posts: 79
Threads: 1
Joined: Apr 2011
Reputation:
0
04-08-2011, 05:23 PM
Hi Prabhat,
Follow the below steps:
1. First Open the QTP
2. Then Outlook
3. Open new test in QTP
4. Press Record button and try recording outlook (this will make necessary register entry for Active X)
5. Now use your code to send a mail
Hope this will surely help.
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
04-08-2011, 07:14 PM
(This post was last modified: 04-08-2011, 07:46 PM by basanth27 .)
Really?? Are you kidding me? If it was that easy there wouldnt be a need for an AOM.
On the Registry can you see if this entry is present ??
My Computer\HKEY_CLASSES_ROOT\Outlook.Application
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 .