Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook and VFP
Message
De
24/07/2009 10:11:12
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
01414069
Message ID:
01414178
Vues:
42
That did it. Thanks Sergey.

>Try
>
>loWSH = CreateObject( "WScript.Shell" )
>loEmailitem.Display()
>loWSH.AppActivate( loEmailItem.Application.ActiveInspector.Caption )
>
>
>I have the following code
>>
>>
>>#DEFINE olFolderInbox 6
>>#DEFINE olFolderOutbox 4
>>#DEFINE olMailItem 0
>>#DEFINE olRecipient 4
>>#DEFINE olRecipients 17
>>#DEFINE IMPORTANCENORMAL 1
>>loApp=CreateObject("Outlook.Application")
>>loNamespace = loApp.GetNamespace("MAPI")
>>loFolder = loNamespace.GetDefaultFolder(olFolderInbox)
>>loEMailItem = loFolder.Items.Add(olMailItem)
>>loEmailItem.Subject = "Test VFP - Outlook"
>>loEmailItem.Recipients.Add('emailadress@someplace.com') && uses the Recipients collection
>>loEmailItem.Importance = IMPORTANCENORMAL
>>loEmailItem.HTMLBody = "Body"
>>loemailitem.Display()
>>*loEmailItem.Send
>>*loApp.Quit()
>>release loApp, loEmailItem
>>
>>
>>Display doesn't really show Outlook. It justs highlight Outlook in my Vista Application toolbar. Outlook doesn't become the active app. I have to click on it in the toolbar to really see it. Any way to really make it the active app. and see the e-mail I just created?
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform