View Single Post
  #5  
Old September 28th 06, 11:27 AM posted to microsoft.public.outlook.program_vba
Virda
external usenet poster
 
Posts: 13
Default ContactItem.Save()


Thanks a lot Ken Slovak

I think you are right but problem then How can I get the event from Outlook
whenever user add/edit/delete any Contact/Task/Calendar item.

Currectly I registered these calsses at ThisApplication_Startup.
"Ken Slovak - [MVP - Outlook]" wrote:

I suppose you could remove whatever class you're using to handle the
ItemAdd/Change events and then re-instantiate it after doing your synching.
Of course anything changed/added during that time would not be picked up
then.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Virda" wrote in message
...
Hello Ken,

Thanks for your reply!

I tried your recomended solution but it didn't work.

Acutually during Sync/receiving all items from server I have to add into
the
Outlook 2003 along with a userproperty where we save its ID.

After it I ahve to call ContactItem.Save().

As soon as this save() functin executed the
ItemsEvents_ItemAddEventHandler
evevt raises and inside this event handler we are sending this
perticular
item to server. Due to this cycle same data resend to server, that is
wrong.

IS there a way Icould disable this event or remove this event???



Ads