Board index » delphi » outlook : jump to specific date
Adrian C.
![]() Delphi Developer |
Adrian C.
![]() Delphi Developer |
outlook : jump to specific date2006-01-31 11:43:13 PM delphi135 from delphi 7, want to jump to a specific date in outlook 2000/xp/2003. any1 knows a clue? thanks. |
Dmitry Streblechenko
![]() Delphi Developer |
2006-02-01 02:17:07 AM
Re:outlook : jump to specific date
Can't do that.
Dmitry Streblechenko (MVP) www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Adrian C." <XXXX@XXXXX.COM>writes Quotefrom delphi 7, want to jump to a specific date in outlook 2000/xp/2003. |
Remko
![]() Delphi Developer |
2006-02-01 06:21:03 AM
Re:outlook : jump to specific date
Sendkeys?
"Adrian C." <XXXX@XXXXX.COM>schreef in bericht Quotefrom delphi 7, want to jump to a specific date in outlook 2000/xp/2003. |
Yorai Aminov (TeamB)
![]() Delphi Developer |
2006-02-01 09:31:19 PM
Re:outlook : jump to specific date
On 31/01/2006 17:43:13, Adrian C. writes:
Quotefrom delphi 7, want to jump to a specific date in outlook var CurFolder: MAPIFolder; begin CurFolder := CoOutlookApplication.Create.ActiveExplorer.CurrentFolder; CurFolder.CurrentView.GoToDate(TargetDate); EmptyMessageQueue; end; You'll have to import the Outlook type library to see the method, or use late binding. You should also check Outlook's version before calling the method, since it isn't supported in Outlook 2002 and earlier (see support.microsoft.com/ and calling it using late binding can crash Outlook if you don't have SP1 installed (see support.microsoft.com/default.aspx -- Yorai Aminov (TeamB) (TeamB cannot answer questions received via email.) Shorter Path - www.shorterpath.com Yorai's Page - www.yoraispage.com |