PC Review


Reply
Thread Tools Rate Thread

Can we use app.config with an Excel add-in component?

 
 
=?Utf-8?B?UVQ=?=
Guest
Posts: n/a
 
      16th Nov 2004
I have built a .NET add-in component for Excel. I have coded everything
according to the example at:
http://support.microsoft.com/default...b;en-us;313405

I don't get any errors, but no values get returned when I invoke:
sAttr = ConfigurationSettings.AppSettings()

I've tried using filenames other than app.config (i.e. MyComponent.config,
MyComponent.app.config) but nothing has worked. Is it even possible to use a
config file like this with a component such as mine? If so, any ideas as to
what I'm missing?

--
Thanks!
QT
 
Reply With Quote
 
 
 
 
Jens Thiel
Guest
Posts: n/a
 
      18th Nov 2004
Try excel.exe.config and put it in the same directory as excel.exe.

Jens.
--
Jens Thiel * http://ManagedXLL.net/ * +49 (228) 5400124
Replace MSDN with my first name when replying to my email address!


"QT" <(E-Mail Removed)> wrote in message
news:8D99B50B-E960-43A0-ACA1-(E-Mail Removed)...
> I have built a .NET add-in component for Excel. I have coded everything
> according to the example at:
> http://support.microsoft.com/default...b;en-us;313405
>
> I don't get any errors, but no values get returned when I invoke:
> sAttr = ConfigurationSettings.AppSettings()
>
> I've tried using filenames other than app.config (i.e. MyComponent.config,
> MyComponent.app.config) but nothing has worked. Is it even possible to

use a
> config file like this with a component such as mine? If so, any ideas as

to
> what I'm missing?
>
> --
> Thanks!
> QT



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Get Instance of Com component Microsoft.Office.Interop.Excel.Worksheetwith Excel Interface Error. Michael G. Microsoft Excel Programming 5 30th Aug 2009 03:39 PM
Re: component services - dcom config Sean Liming \(eMVP\) Windows XP Embedded 0 1st Dec 2006 05:45 PM
Component designer Create Com Ports with config =?Utf-8?B?R2FldGFu?= Windows XP Embedded 4 7th Aug 2006 05:53 PM
app.config setting for Component object in c# =?Utf-8?B?TWF2ZXJpY2s=?= Microsoft Dot NET 2 7th Jul 2004 10:43 AM
app.config setting for Component object in c# =?Utf-8?B?TWF2ZXJpY2s=?= Microsoft C# .NET 2 6th Jul 2004 09:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:39 PM.