Roman Benko

Does anyone know if there is a way to use VSTO to open and read data in the outlook.nk2 file. Our company is changing E-mail addresses for employees and this file contains auto-complete data that can be used to let our staff know who they should send updates too. Thanks.

Re: Visual Studio Tools for Office Working With the Outlook.NK2 file

Sue Mosher - Outlook MVP

The format of that file is binary and undocumented. You'd have to reverse engineer it. In your scenario, deleting it completely might be the best solution.



Re: Visual Studio Tools for Office Working With the Outlook.NK2 file

Roman Benko

Ingressor (http://www.ingressor.com) sells a utility for $40 that lets you view and edit the .nk2 file. I just purchased it for the short-term, but was thinking that if they could get to the file programmatically, then we would be able to as well by using VSTO or some other method. I don't want to delete the .nk2 file. I just want to be able to look at the E-mail addresses in there to quickly identify the people our users have corresponded with recently so they could be notified of our new E-mail addresses.



Re: Visual Studio Tools for Office Working With the Outlook.NK2 file

Sue Mosher - Outlook MVP

Ingressor did what you'd have to do to access the data programmatically: They hacked the file format.



Re: Visual Studio Tools for Office Working With the Outlook.NK2 file

Roman Benko

OK, thanks for the feedback. I just wanted to make sure there wasn't already something in place that could be used.

Roman





Re: Visual Studio Tools for Office Working With the Outlook.NK2 file

Roman Benko

Follow-up: You can download a FREE copy of NK2View from http://www.nirsoft.net/utils/outlook_nk2_autocomplete.html. It allows you to view and export the entries in the file, but not modify them. Keep in mind that .nk2 files are hidden system files and you will need to set Windows Explorer to display these types of files. It should be located in c:\documents and settings\%username%\Application Data\Microsoft\Outlook\Outlook.nk2.



Re: Visual Studio Tools for Office Working With the Outlook.NK2 file

Roman Benko

One more follow-up. The product from Ingressor requires you to open port 9694 in order to use it. This may be an issue for corporate users who have a hard time getting their security people to approve such requests.



Re: Visual Studio Tools for Office Working With the Outlook.NK2 file

Reshmi

Hi,

I am using a tool which I downloaded from Nk2.info. It displays all the email addresses, but I need to modify this file programatically in VSTO. Is there a way to do it

Thanks,

Reshmi