BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TAppointmentItem.Save not generating EntryID

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Glenn Thimmes
Guest





PostPosted: Mon Dec 06, 2004 7:21 pm    Post subject: TAppointmentItem.Save not generating EntryID Reply with quote



Hello,

I am having trouble with the TAppointmentItem for Outlook generating an
EntryID when I save it. It works fine if Outlook is open when my code runs.
But if Outlook is not currently running, the appointment object appears to
just get thrown on some kind of a queue until outlook is actually opened,
and the EntryID is just empty. This theory comes partly from the fact that
when I open Outlook, it takes a few seconds before this new appointment
appears on the calendar.

I've added an TOutlookApplication to my form and called connect before the
appointment is saved, but that did not fix the problem. Could this be
happening because we use Exchange server and Outlook cannot get an EntryID
for the appointment until Outlook is fully connected to Exchange?

Any suggestions would be most appreciated.

-Glenn


Back to top
Dmitry Streblechenko
Guest





PostPosted: Mon Dec 06, 2004 9:00 pm    Post subject: Re: TAppointmentItem.Save not generating EntryID Reply with quote



After creating an instance of the Outlook.Application object, do you
explicitly call Namespace.Logon?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool


"Glenn Thimmes" <GlennOfTheNoSpam (AT) nospam (DOT) com> wrote

Quote:
Hello,

I am having trouble with the TAppointmentItem for Outlook generating an
EntryID when I save it. It works fine if Outlook is open when my code
runs.
But if Outlook is not currently running, the appointment object appears to
just get thrown on some kind of a queue until outlook is actually opened,
and the EntryID is just empty. This theory comes partly from the fact that
when I open Outlook, it takes a few seconds before this new appointment
appears on the calendar.

I've added an TOutlookApplication to my form and called connect before the
appointment is saved, but that did not fix the problem. Could this be
happening because we use Exchange server and Outlook cannot get an EntryID
for the appointment until Outlook is fully connected to Exchange?

Any suggestions would be most appreciated.

-Glenn





Back to top
Glenn Thimmes
Guest





PostPosted: Mon Dec 06, 2004 9:36 pm    Post subject: Re: TAppointmentItem.Save not generating EntryID Reply with quote



That did the trick for me. Thanks a lot for the help!

-Glenn


"Dmitry Streblechenko" <dmitry (AT) dimastr (DOT) com> wrote

Quote:
After creating an instance of the Outlook.Application object, do you
explicitly call Namespace.Logon?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool


"Glenn Thimmes" <GlennOfTheNoSpam (AT) nospam (DOT) com> wrote in message
news:41b4b14c$1 (AT) newsgroups (DOT) borland.com...
Hello,

I am having trouble with the TAppointmentItem for Outlook generating an
EntryID when I save it. It works fine if Outlook is open when my code
runs.
But if Outlook is not currently running, the appointment object appears
to
just get thrown on some kind of a queue until outlook is actually opened,
and the EntryID is just empty. This theory comes partly from the fact
that
when I open Outlook, it takes a few seconds before this new appointment
appears on the calendar.

I've added an TOutlookApplication to my form and called connect before
the
appointment is saved, but that did not fix the problem. Could this be
happening because we use Exchange server and Outlook cannot get an
EntryID
for the appointment until Outlook is fully connected to Exchange?

Any suggestions would be most appreciated.

-Glenn







Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.