Board index » delphi » outlook : jump to specific date

outlook : jump to specific date


2006-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.
 
 

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
Quote
from delphi 7, want to jump to a specific date in outlook 2000/xp/2003.
any1 knows a clue?

thanks.

 

Re:outlook : jump to specific date

Sendkeys?
"Adrian C." <XXXX@XXXXX.COM>schreef in bericht
Quote
from delphi 7, want to jump to a specific date in outlook 2000/xp/2003.
any1 knows a clue?

thanks.

 

Re:outlook : jump to specific date

On 31/01/2006 17:43:13, Adrian C. writes:
Quote
from delphi 7, want to jump to a specific date in outlook
2000/xp/2003. any1 knows a clue?
In Outlook 2003, you can use the GoToDate method:
procedure GotoDate(TargetDate: TDateTime);
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