Page 1 of 1
Outlook Inbox Ole
Posted: Tue Jan 08, 2008 5:41 pm
by Jack
How is it possible to read the inbox of Outlook direct from FiveWin.
How is it possible to save a file attached to a message .
Thanks for your help .
Re: Outlook Inbox Ole
Posted: Tue Jan 08, 2008 6:45 pm
by Enrico Maria Giordano
Jack wrote:How is it possible to read the inbox of Outlook direct from FiveWin.
Code: Select all
#define olFolderInbox 6
FUNCTION MAIN()
LOCAL oOutlook := CREATEOBJECT( "Outlook.Application" )
LOCAL oNameSpace := oOutlook:GetNameSpace("MAPI")
LOCAL oInbox := oNameSpace:GetDefaultFolder( olFolderInbox )
LOCAL i
FOR i = 1 TO oInbox:Items:Count
? oInbox:Items[ i ]:Body
?
NEXT
oOutlook:Quit()
RETURN NIL
EMG
Posted: Thu Jan 10, 2008 1:04 am
by driessen
And can someone tell me how to read or to save the attachments ?
Thanks.
Posted: Fri Jan 11, 2008 4:41 pm
by driessen
Has nobody read my question ?
Does anyone know how to read or save attachments using OLE ?
Thanks.
Posted: Fri Jan 11, 2008 4:48 pm
by Enrico Maria Giordano
You have to study Office Outlook docs.
EMG