Hi Stuart,
You could use a standard .NET .config file.
1. Make a file called <TheAddInName>.xll.config with this in:
<configuration>
<appSettings>
<add key = "Test" value="Forty-two" />
</appSettings>
</configuration>
2. In your project, add a reference to the System.Configuration
assembly.
3. In your server add some function to access the settings:
internal static string GetAppSetting(string key)
{
object setting =
System.Configuration.ConfigurationManager.AppSettings[key];
if (setting == null)
{
return "!! INVALID KEY !!";
}
return setting.ToString();
}
-Govert