Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ole Automation Issue in Outlook
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Ole Automation Issue in Outlook
Divers
Thread ID:
00791717
Message ID:
00791717
Vues:
69
Howdy,

We're trying to create a module in our Webconnect application that instantiates an Outlook object, creates an email and sends it. Here's the sample code that's being used for testing:

Local oNewEmail,oOutlook
oOutlook=CREATEOBJECT("outlook.application")
IF TYPE('oOutlook')='O'
oNewmail=oOutlook.CreateItem(0)
IF TYPE('oNewmail')='O'
With oNewmail
.Subject="CJ Test2 OLE Automation w Outlook"
.Body="The email Body text"+chr(13)+"Force new line"
.Recipients.ADD("cjoglekar@conarc.com")
.replyrecipients.ADD("cjoglekar@conarc.com")
.Importance=2
.ReadReceiptRequested=.F.
.SAVE
.SEND
Endwith
Release oNewmail
endif
Release oOutlook
endif

The code works, but on one of our machines that's running Windows XP and Outlook XP, the Outlook object is suspending execution of the code with a "allow action to proceed" warning dialogue. Once that dialogue is cleared, the code proceeds. Obviously, we can't have this or any dialogue suspending execution on the server.

My question is...is there a property in the Outlook object that corresponds to the Outlook setting on the machine that can disable this dialogue from popping up?

Thanks in advance,

Ben Holton
Conarc, Inc.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform