![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |