Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook - chose profile
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01610358
Message ID:
01610359
Vues:
84
This message has been marked as the solution to the initial question of the thread.
Use workaround suggested at http://msdn.microsoft.com/en-us/library/office/ff861594.aspx
  loMapi = loOutLook.GetNameSpace("MAPI")
  mailFolder = loMapi.GetDefaultFolder(olFolderInbox)
  loItem = loOutlook.CreateItem(0)
>Whenever vfp generates an email and outlook is NOT open I get an annoying message
>blue box appears - choose profile (heading) - with 'outlook' appearing in profile name.
>I have ticked the options to select this as default setting but it reappears each time just the same.
>Is there something I can add in the coding to force the email program to open without this presistent option appearing.
>Here is what I have running currently.
>tnx
>k
>
> LOCAL loOutlook, loItem, lnCountAttachments, loMapi
> TRY
>  loOutlook = CREATEOBJECT("outlook.application")
>  loMapi = loOutLook.GetNameSpace("MAPI")
>  loMapi.Logon()
>  loItem = loOutlook.CreateItem(0)
>etc......
> IF tlOpenEmail
>     .display()
>     olNormalWindow = 2
>
>     loInspector = .GetInspector()
>     loInspector.WindowState = olNormalWindow
>ELSE
>
>    .SEND()
>   ENDIF
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform