Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp 5 or 6 using OLE to communicate with Outlook 98
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00167816
Message ID:
00167828
Views:
25
You'll need to define the constants yourself. They are:

olMailItem 0
olAppointmentItem 1
olContactItem 2
olTaskItem 3
olJournalItem 4
olNoteItem 5
olPostItem 6

>Has anyone ever used VFP to connect to Outlook via OLE? There are a couple of papers on Microsoft's site with examples(of course there VB examples), and I've had some luck creating references to the Outlook Object library (ie.. oOutlookApp = CREATEOBJECT("Outlook.Application"), but I'm having trouble creating any new items, such as mail messages,notes, etc...
>It's as though it doesn't recognize the constants provided in their help such as (olMailItem, olNoteItem, ..) which are used with the oOutlookApp.CreateItem(olMailItem) method, which would create a new mail message. Any thoughts?
>
>Thanks in advance,
>
>sc
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform