Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a session of Outlook from Foxpro
Message
 
 
À
20/06/2002 10:37:46
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00670631
Message ID:
00670796
Vues:
16
Try to add
>oOutLookObject = CreateObject("Outlook.Application")
* Get Namespace
oNameSpace = oOutlookObject.GetNameSpace("MAPI")
* If it doesn't help, try to login using following line
*oNameSpace.Logon("ProfileName", "Password")
...
>I am using Outlook to send mail from my foxpro application.
>However if the user does not have outlook opened they are served an error from outlook "Do not have permssion to do this operation".
>How do I trap that error, or how do I force my program to open up a session of outlook?
>this is the code i am using:
>
>#INCLUDE outlook.h
>oOutLookObject = CreateObject("Outlook.Application")
>oEmail = oOutLookObject.createItem(0)
>WITH oEmail
> .to = "test@test.com"
> .Body="test"
> .subject="test"
> .send
>ENDWITH
>
>I would appreciate any help with this.
>Thanks.
>Shevy
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform