Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automating Outlook
#1
Solved: 10 Years, 9 Months ago
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)
   
Reply
#2
Solved: 10 Years, 9 Months ago
Hi Prabhat,

Is outlook installed on your machine?
Reply
#3
Solved: 10 Years, 9 Months ago
Hi Nilesh,

Yes, outlook is installed in my machine. I have associated ActiveX addin also.
Reply
#4
Solved: 10 Years, 9 Months ago
Hi Prabhat,

i think there is problem with outlook installation use 'Detect and Repair' option in Outlook.
Maybe that will fix it.


Regards
Nilesh
Reply
#5
Solved: 10 Years, 9 Months ago
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?
Reply
#6
Solved: 10 Years, 9 Months ago
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
Reply
#7
Solved: 10 Years, 9 Months ago
It didn't help either.

Can anybody come up with anything else?
Reply
#8
Solved: 10 Years, 9 Months ago
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.
Reply
#9
Solved: 10 Years, 9 Months ago
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.
Reply
#10
Solved: 10 Years, 9 Months ago
Looks like your machine's registry has gone corrupt. Try in the following order and let us know if any of these helps -

1) "Detect and Repair" Outlook.
2) Repair your MS office installation.
3) Use
Code:
CreateObject("Outlook.Application","localhost")
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Automating SAP Sales Order Dwarak Calayampundi 0 1,617 06-09-2016, 09:28 AM
Last Post: Dwarak Calayampundi
  Automating shorcuts in Windows all programs surestud 0 1,577 04-17-2015, 05:04 PM
Last Post: surestud
  Clicking a link in an outlook email using QTP kirti 0 5,370 06-15-2014, 01:25 AM
Last Post: kirti
  help automating carousel ACCBAJPA 1 2,501 09-07-2013, 04:30 AM
Last Post: jacosta
  Help needed in automating a Java window adityasrinivasb 2 3,276 07-05-2013, 02:00 PM
Last Post: Staff

Forum Jump:


Users browsing this thread: 2 Guest(s)