Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting Application Error while launching Outlook
#1
Not Solved
Hi,
I wanted to launch Outlook with QTP code. When i am writing the below code itself its throwing Application error and QTP is getting closed

Code:
Set Outlookapp=createobject("Outlook.Application")
Set Outlookapp1=Outlookapp.GetNameSpace(

When i open braces after Getnamespace its throwing Application error and QTP is getting closed.
Please suggest where i am doing wrong?


Regards,
Yogi
Reply
#2
Not Solved
Try below code

Code:
Set olapp = CreateObject("Outlook.Application")
Set olns = olapp.GetNameSpace("MAPI")
olns.logon
Set objfolder=olns.getdefaultfolder(6)
objfolder.display
Reply
#3
Not Solved
Hi,
I copied the above code and its working but when i try to write the same its throwing application error at the below line. i am using QTP 10.0.
Code:
Set olapp = CreateObject("Outlook.Application")
Set olns = olapp.GetNameSpace(
When i use any function and open brace then application errorSad
What might be the issue?
Reply
#4
Not Solved
May be configuration problem.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT 12.02 Launching default home page sureshbl 0 3,157 06-01-2015, 02:15 AM
Last Post: sureshbl
  Launching .exe file with parameters magnifyingone 1 2,925 08-28-2014, 06:39 PM
Last Post: dplank
  Clicking a link in an outlook email using QTP kirti 0 5,368 06-15-2014, 01:25 AM
Last Post: kirti
  Outlook question mv8167 1 3,060 09-09-2012, 11:46 AM
Last Post: freeboynil
  Automating Outlook PrabhatN 14 15,359 09-08-2012, 02:01 AM
Last Post: Jiju8621

Forum Jump:


Users browsing this thread: 1 Guest(s)