Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook Integration Problem
Message
From
22/01/2008 16:16:00
 
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
SAMBA Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01284036
Message ID:
01284265
Views:
16
Sounds like the issue where MSMAPI controls must be subclassed, then placed on your mail form.


>Hello All,
>
>I wrote a standalone EXE, stealing some sample code from Craig Boyd, to send email through Outlook using MAPI. While I was testing, it seemed to work just fine, but when in regular use I get an error saying it can't establish a session, but outlook is open.
>
>Here is a code snippit
>
>loSession = CREATEOBJECT( "MSMAPI.MAPISession" )
>loSession.Signon()
>IF (loSession.SessionID > 0)
> loMessages = CREATEOBJECT( "MSMAPI.MAPIMessages" )
> loMessages.SessionID = loSession.SessionID
>ENDIF
>loMessages.Compose()
>
>Works fine until it fails, after it fails, it continues to fail until I reboot, not even closing and reopening Outlook fixes it. I need to have the email go through the client so the email shows up in the users set folder.
>
>Any suggestions on where the problem lies or how to fix it would be appreciated.
>
>Thanks in advance
>
>Bob
Previous
Reply
Map
View

Click here to load this message in the networking platform