FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Outlook Inbox Ole
Posts: 300
Joined: Wed Jul 11, 2007 11:06 AM
Outlook Inbox Ole
Posted: Tue Jan 08, 2008 05:41 PM

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 .

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Outlook Inbox Ole
Posted: Tue Jan 08, 2008 06:45 PM
Jack wrote:How is it possible to read the inbox of Outlook direct from FiveWin.


#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
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Outlook Inbox Ole
Posted: Thu Jan 10, 2008 01:04 AM

And can someone tell me how to read or to save the attachments ?

Thanks.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Outlook Inbox Ole
Posted: Fri Jan 11, 2008 04:41 PM

Has nobody read my question ?

Does anyone know how to read or save attachments using OLE ?

Thanks.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Outlook Inbox Ole
Posted: Fri Jan 11, 2008 04:48 PM

You have to study Office Outlook docs.

EMG

Continue the discussion