Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you know if Outlook is setup on PC?
Message
From
07/08/2003 14:59:03
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00817890
Message ID:
00817923
Views:
14
Hi Sergey,

I had the solution right under my nose all the time. I have an existing messaging class that uses MAPI and added the Outlook functionality when sending email using HTML. I can actually use the MAPI class to get a valid SignOn() which returns false if the mail profile is not setup.

One problem may occur is that if the PC has another email client set as "default" other than Outlook will return a valid SignOn(). Instantiating Outlook will still start the wizard.

>See Re: Is Word/Excel installed Message #566432.
>
>>Hi all,
>>
>>Can you check if Outlook is setup in the PC? Running the following code:
>>
>>oOutlookApp = createobject('Outlook.Application')
>>
>>will start the Outlook Setup wizard if no Mail profile has been defined in Outlook.
>>
>>Thanks,
ramil
~~ learning to stand still
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform