Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ole Automation Issue in Outlook
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00791717
Message ID:
00791743
Views:
19
Review ideas from Thread #761025

>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform