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

Address Book add-in wipes out autocomplete cache



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 1st 08, 01:53 PM posted to microsoft.public.outlook.program_addins
michigander
external usenet poster
 
Posts: 2
Default Address Book add-in wipes out autocomplete cache

I've built an add-in that creates a new address book, fills it with contacts
from an external source and gives the user the option to move these contacts
into thier Contacts folder (for synchronizing with a PDA). If the folder
already exists, the contents in the new address book are updated (adding new
and deleting missing items from the external source).

The Contacts folder is synchronized by deleting and replacing items based on
a Category name to preserve Contacts that are not from this source.

This process works fine but unfortunately raises havoc with the autocomplete
cache, at least for the contact items I am replacing. I can capture the .nk2
file, rename it and have the user close Outlook, replace the .nk2 file with
the renamed file and when Outlook is reopened the autocomplete cache is ok.
This is not a very pleasant process to go through on a regular basis, even if
I automate the file replacement to a single click because of the need to
close and reopen Outlook.

Is there anyway to programatically (C#) duplicate the rebuilding of the
autocomplete cache (select all contacts from desired source - send to new
message - ctlK - close without saving)?

TIA for any suggestions.




Ads
  #2  
Old September 1st 08, 02:42 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Address Book add-in wipes out autocomplete cache

I know of no way to do that

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"michigander" wrote in message
...
I've built an add-in that creates a new address book, fills it with
contacts
from an external source and gives the user the option to move these
contacts
into thier Contacts folder (for synchronizing with a PDA). If the folder
already exists, the contents in the new address book are updated (adding
new
and deleting missing items from the external source).

The Contacts folder is synchronized by deleting and replacing items based
on
a Category name to preserve Contacts that are not from this source.

This process works fine but unfortunately raises havoc with the
autocomplete
cache, at least for the contact items I am replacing. I can capture the
.nk2
file, rename it and have the user close Outlook, replace the .nk2 file
with
the renamed file and when Outlook is reopened the autocomplete cache is
ok.
This is not a very pleasant process to go through on a regular basis, even
if
I automate the file replacement to a single click because of the need to
close and reopen Outlook.

Is there anyway to programatically (C#) duplicate the rebuilding of the
autocomplete cache (select all contacts from desired source - send to new
message - ctlK - close without saving)?

TIA for any suggestions.





  #3  
Old September 1st 08, 10:29 PM posted to microsoft.public.outlook.program_addins
michigander
external usenet poster
 
Posts: 2
Default Address Book add-in wipes out autocomplete cache

It is also possible I am using the wrong approach to keep the Outlook
contacts updated from the external source. The intention is for this to be
one-way only. Can anyone suggest a better way than delete and replace while
leaving other items in the contact folder that do not match the category
alone?

"Ken Slovak - [MVP - Outlook]" wrote:

I know of no way to do that

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"michigander" wrote in message
...
I've built an add-in that creates a new address book, fills it with
contacts
from an external source and gives the user the option to move these
contacts
into thier Contacts folder (for synchronizing with a PDA). If the folder
already exists, the contents in the new address book are updated (adding
new
and deleting missing items from the external source).

The Contacts folder is synchronized by deleting and replacing items based
on
a Category name to preserve Contacts that are not from this source.

This process works fine but unfortunately raises havoc with the
autocomplete
cache, at least for the contact items I am replacing. I can capture the
.nk2
file, rename it and have the user close Outlook, replace the .nk2 file
with
the renamed file and when Outlook is reopened the autocomplete cache is
ok.
This is not a very pleasant process to go through on a regular basis, even
if
I automate the file replacement to a single click because of the need to
close and reopen Outlook.

Is there anyway to programatically (C#) duplicate the rebuilding of the
autocomplete cache (select all contacts from desired source - send to new
message - ctlK - close without saving)?

TIA for any suggestions.






  #4  
Old September 2nd 08, 01:57 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Address Book add-in wipes out autocomplete cache

If you don't replace the changed items then you have to go over every
property in the synch object to update the existing item, so I'd say your
choice would be a better one.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"michigander" wrote in message
...
It is also possible I am using the wrong approach to keep the Outlook
contacts updated from the external source. The intention is for this to be
one-way only. Can anyone suggest a better way than delete and replace
while
leaving other items in the contact folder that do not match the category
alone?


 




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
Outlook 2003 cache mode address book problem Golden_au Outlook - Installation 0 September 19th 07 05:26 AM
Autocomplete doesn't work have Contacts but no Address Book? Freddie Outlook - Using Contacts 4 October 11th 06 01:51 PM
How do I clear autocomplete cache when I have no NK2-file? Kjetil Thorstensen Outlook - Using Contacts 3 August 29th 06 10:03 PM
Outlook 2002- Want to save email addresses in cache to address book. How? [email protected] Outlook - Using Contacts 1 June 18th 06 12:35 PM
My e-mail address book (for Autocomplete) has disappeared [email protected] Outlook - Using Contacts 0 January 9th 06 10:46 PM


All times are GMT +1. The time now is 08:37 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.