Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook issue
Message
De
05/08/2015 19:03:35
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
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:
01622909
Message ID:
01622972
Vues:
80
>I am experiencing new issue between outlook and VFP. each time vfp accesses outlook for information we are getting the following message
>"A program is trying to access email address information stored in outlook......" Allow --- Deny ---- Help
>
>It would seem that there is a solution that I found on how to disable the warning.
>http://sogeeky.blogspot.ca/2007/04/how-to-disable-outlook-security-warning.html
>
>My question is - IF this is my correct approach to resolving this problem - how would I set up a value to disable the warning. Here is the information on the website above: followed by my programming calling up outlook.
>
>Thank you for any help you can provide.
>K
>
>The table below shows other applicable values for CheckAdminSettings.
>Value What Oulook Does
>Key not present Uses its default settings
>0 Uses its default settings
>1 Looks for settings in the Outlook Security Settings folder, applying them according to the defaults and specific users you've specified.
>2 For Outlook 2002 and Outlook 2003 only: Looks for settings in the Oulook 10 Security Settings folder, ignoring any settings in the Outlook Security Settings folder. Use this value when you want Outlook 2002/2003 to use different settings
>Anything else Uses its default settings
>
>
>loOutlook   = Createobject('Outlook.Application') &&
>loNameSpace = loOutlook.GetNamespace("MAPI")
>loInBox     = loNameSpace.GetDefaultFolder(olFolderInBox)
>loMsgs =   loInBox.Items
>loUnread = loMsgs.Restrict("[Unread] = true")
>loMess =   loInBox.Items
>
I agree with the CDO approach. I used Sergey's code at https://www.berezniker.com/content/pages/visual-foxpro/cdo-2000-class-sending-emails to get started. It looks like a lot of code, but really isn't, some of it illustrates the flexibility.

I have one app using it on Server 2012 R2. It runs fine, nothing to install or configure, it's just there and it works.

One drawback to the CDO approach is, since you're not automating Outlook, you don't automatically get a copy of sent messages in Outlook. But, you can save them in some other format elsewhere, or that may not be important to you.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform