0
votes

What is the best way to store local information for a VSTO Word2010 Add-in? Should I write into the users personal folders? Any special permissions required in this case?

2
Thanks for the reply. But then my information is stored inside a specific document. I was wondering if there was a way store information across documents (for instance adresses, signatures, ...)Patrick
I shared Custom Document Properties by creating the documents from a template and add the CDP to the templates. So all the documents created from the .dotx template would have the CDP's.Kiru

2 Answers

1
votes

I recommend two locations:

ProgramData - I use this for data applicable to all users.

Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);

AppData - Use this location for per-user data.

Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);

0
votes

you can use database or local folder, factor to consider when opting local folder is all information will get lost if user re install, format or switch his machine.