GiantMatrix
asked on
Outlook and Delphi
Hi All,
I need to know how I can get the "All mail folders"/ "personal folders" from my (Microsoft Outlook 2003) and display it in a TListBox component on a form using Delphi 7
So can someone provide me with source code OR tutorial (with source) that shows how I can do that.
Thanks in advance
I need to know how I can get the "All mail folders"/ "personal folders" from my (Microsoft Outlook 2003) and display it in a TListBox component on a form using Delphi 7
So can someone provide me with source code OR tutorial (with source) that shows how I can do that.
Thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Greeting GiantMatrix
- about (Junk E-mail) and (Drafts) folders there have code (23) ,(16) you can try it ,(for i:=3 to 6 ) to (for i:=3 to 23 ) and disable this line j:=myFolder.items.count ; to // j:=myFolder.items.count in Button1Click(Sender)
- can disable showing the warning message when double clicking on ListBox2,only i know make click in allow access for
- Why do I get an error at line (Outlook := GetActiveOleObject('Outloo k.Applicat ion');) when Outlook is not running and is there a way I can avoid this error?
because you did run from delphi , but when do compiler or (run) and close this application and go to it's folder and open exe file
sorry my English language not good
- about (Junk E-mail) and (Drafts) folders there have code (23) ,(16) you can try it ,(for i:=3 to 6 ) to (for i:=3 to 23 ) and disable this line j:=myFolder.items.count ; to // j:=myFolder.items.count in Button1Click(Sender)
- can disable showing the warning message when double clicking on ListBox2,only i know make click in allow access for
- Why do I get an error at line (Outlook := GetActiveOleObject('Outloo
because you did run from delphi , but when do compiler or (run) and close this application and go to it's folder and open exe file
sorry my English language not good
ASKER
Perfect :-) Just 3 final question about the source code you posted:
- Why the (Junk E-mail) and (Drafts) folders are not shown when retrieving the folders from outlook?
- Is there a way I can disable showing the warning message when double clicking on ListBox2 to see the messages content?
- Why do I get an error at line (Outlook := GetActiveOleObject('Outloo
thanks in advance for your help and cooperation.