Hi Patrick,
The sample \Distribution\Samples\Packing\PackConfig\ actually has
a .dna file and .config file that does the tracing to a file C:
\PackConfig.log. I just used it to test the .config file packing, but
it works as a sample for what you ask too.
For your own test, you can check:
* Is your config file called "MyAddInName.xll.config", and next to
MyAddInName.xll? Only those files are loaded by Excel-DNA as the
config file for the AppDomain.
* I see that I had to #define TRACE for it to work with the C#. Maybe
you need something similar in
VB.NET (if it is not the default).
Regards,
Govert
On Sep 25, 2:11 pm, "Patrick O'Beirne" <
obeirne....@gmail.com> wrote:
> I see that in VS 2010 Express adding a .config file generates defaults
> like this:
>
> <add name="FileLog"
> type="Microsoft.VisualBasic.Logging.FileLogTraceListener,
> Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
> initializeData="FileLogWriter"/>
>
> But how are they used? I've added lines like
> Trace.WriteLine("ActiveCell address: " & cell.Address(External:=True))
>
> but no output file called FileLogWriter or anything else is created.
>
> MSDN examples are pretty opaque eghttp://
social.msdn.microsoft.com/forums/en-US/netfxbcl/thread/25fd387...