Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook: If it's not running - error on CreateItem
Message
 
 
To
24/12/2001 13:00:31
Sasha Burkich
Senior Systems Analyst
British Columbia, Canada
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00597633
Message ID:
00597967
Views:
21
This message has been marked as the solution to the initial question of the thread.
Hi,

Do you have multiple outlook profiles on this PC? You can check the list of profiles in the registry \HKEY_CURRENT_USER\Software\Microsoft\Windows Messaging Subsystem\Profiles.
Try to login explicitly
oNameSpace.Logon("ProfileName", "Password")
BTW, what's the value of olMailItem outlook constant in your program?

>Hi Sergey,
>
>thanks for the advice. Though, after applying it, I still get the error on oMessage = oOutlook.CreateItem(olMailItem).
>
>The advice was to create NameSpace (oNameSpace = oOutlook.GetNameSpace("MAPI")
>) after initializing Outlook object. The NameSpace gets created, TYPE('oNameSpace')='O' after.
>
>
>>Hi Sasha,
>>
>>Take a look at Message #398853.
>>
< snip >
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform