Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading outlook message
Message
 
To
04/03/2004 07:15:59
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00883023
Message ID:
00883026
Views:
9
Gary
Why don't you use plain-vanilla Outlook automation? Something like the following ( learned from Tamar E. Granor, the real guru of automation ) should get you started:
oOutlookApp = CreateObject("Outlook.Application")
oNameSpace = oOutlookApp.GetNameSpace("MAPI")
oInbox = oNameSpace.GetDefaultFolder(6)
oMessages = oInbox.Items
*** now you have a collection of messages in oMessages
*** you could for instance do the following:
FOR nMsgIndex = oMessages.Count TO 1 step -1
   oMessage = oMessages[nMsgIndex]
   ? oMessage.Subject
ENDFOR
HTH
Jaime

>Requirement: Need to "store" copies of outlook message received by number of employees with a "job" in VFP application.
>
>Solution1: "copy" in Outlook and read clipboard from VFP.
>Problem: Have code to open/read clipboard and can find format, but how do I then access data within the clipboard? need more than _cliptext. need something like oMessage=CliptoObject()!!??
>
>Solution2: VBScript/macro in outlook to copy current message to export file, VFP looks for file and reads.
>Problem: No idea how to start VBScript/macro side!
>
>Any help with problems or any other solutions would be great!
>
>
>Gary
Why do programs stop working correctly as soon as you leave the Fox?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform