A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

why appointment.LastModificationTime isn't changed?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 18th 07, 09:10 AM posted to microsoft.public.outlook.program_addins
cynthia
external usenet poster
 
Posts: 23
Default why appointment.LastModificationTime isn't changed?

I am using Outlook2003. I just want to know how could I judge whether a
appointment has been modified? I have tried to write Save() method in code
and click "Save" button in menu, but these both did not change the
LastModificationTime. It is always equal to CreationTime.

How could I do?

Thanks
Ads
  #2  
Old December 19th 07, 11:30 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default why appointment.LastModificationTime isn't changed?

Try to release the object by setting it to Nothing in VB (or null in .Net
with a subsequent call to Marshal.ReleaseCOMObject), then reopen it using
Namespace,GetItemFromID.

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

"Cynthia" wrote in message
...
I am using Outlook2003. I just want to know how could I judge whether a
appointment has been modified? I have tried to write Save() method in code
and click "Save" button in menu, but these both did not change the
LastModificationTime. It is always equal to CreationTime.

How could I do?

Thanks



  #3  
Old December 26th 07, 05:49 AM posted to microsoft.public.outlook.program_addins
cynthia
external usenet poster
 
Posts: 23
Default why appointment.LastModificationTime isn't changed?

Thanks for your reply


I have tried your code in my developing environment. But it didn't work very
well :-( I found a problem: I created a new appointment in my code with C#,
and set its recurrence property, then saved it and displayd it (Because I
found in C#, if I want to create a recurring appointment, I must set its
recurrence property and save it before displaying, is it Right??). After
opening it, I also added some properties into the current active appointment.
When closing it, I saved the new properties and compared LastModificationTime
with CreationTime, they were also same.



But if I reopen the appointment from my Calendar, I modified and saved, the
LastModificationTime and CreationTime were not same.



So how could I get the correct LastModificationTime when I create new
appointment and modified some properties?



Thank you very much


"Dmitry Streblechenko" wrote:

Try to release the object by setting it to Nothing in VB (or null in .Net
with a subsequent call to Marshal.ReleaseCOMObject), then reopen it using
Namespace,GetItemFromID.

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

"Cynthia" wrote in message
...
I am using Outlook2003. I just want to know how could I judge whether a
appointment has been modified? I have tried to write Save() method in code
and click "Save" button in menu, but these both did not change the
LastModificationTime. It is always equal to CreationTime.

How could I do?

Thanks




  #4  
Old December 27th 07, 06:42 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default why appointment.LastModificationTime isn't changed?

Same answer:

Try to release the object by setting it to Nothing in VB (or null in .Net
with a subsequent call to Marshal.ReleaseCOMObject), then reopen it using
Namespace,GetItemFromID.

Since you are using .Net, the COM objects are released later by the GC.
Avoid using multiple dot notation, release all object explicitly using
Marshal.ReleaseCOMObject, call GC.Collect. Then reopen the item using
Namespace.GetItemFromID.

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

"Cynthia" wrote in message
...
Thanks for your reply


I have tried your code in my developing environment. But it didn't work
very
well :-( I found a problem: I created a new appointment in my code with
C#,
and set its recurrence property, then saved it and displayd it (Because I
found in C#, if I want to create a recurring appointment, I must set its
recurrence property and save it before displaying, is it Right??). After
opening it, I also added some properties into the current active
appointment.
When closing it, I saved the new properties and compared
LastModificationTime
with CreationTime, they were also same.



But if I reopen the appointment from my Calendar, I modified and saved,
the
LastModificationTime and CreationTime were not same.



So how could I get the correct LastModificationTime when I create new
appointment and modified some properties?



Thank you very much


"Dmitry Streblechenko" wrote:

Try to release the object by setting it to Nothing in VB (or null in .Net
with a subsequent call to Marshal.ReleaseCOMObject), then reopen it using
Namespace,GetItemFromID.

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

"Cynthia" wrote in message
...
I am using Outlook2003. I just want to know how could I judge whether a
appointment has been modified? I have tried to write Save() method in
code
and click "Save" button in menu, but these both did not change the
LastModificationTime. It is always equal to CreationTime.

How could I do?

Thanks






 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
appointment time changed automatically Dory Outlook - Calandaring 5 July 30th 07 06:10 PM
Owner of a recurring appointment be changed? RonFromSydney Outlook - Calandaring 2 June 21st 07 08:40 AM
Imported Calendar Appointment Times Changed to 2 Hours Earlier Learning to work with the Borg Outlook - Calandaring 3 April 22nd 07 08:36 PM
A changed one time appointment comes back as recurring. Wildlight Outlook - Calandaring 1 February 25th 07 10:28 PM
TURNED ON MY COMPUTER AND FONT SIZE SETTINGS CHANGED TO TINY/EXCELL CHANGED TOO [email protected] Outlook - General Queries 0 October 29th 06 09:50 PM


All times are GMT +1. The time now is 10:34 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.