ToolBar Question from New Developer Add-in Express

Add-in Express™ Support Service
That's what is more important than anything else

ToolBar Question from New Developer Add-in Express
 
Omer Herera




Posts: 40
Joined: 2010-05-12
I create a "COM add-in project" with C# like explained in the following link:
http://www.add-in-express.com/docs/net-first-com-addin.php
I compile and everything is ok, I also register the ADX Project.
I expect to see the add-in in the "Add-Ins" ribbon of excel 2007, but nothing appear over there, what I need to do to see my add-in? After compiling, Do I need to add code in order to see the tool bar?
Thanks in advaced
:(
Posted 14 Sep, 2010 11:27:14 Top
Andrei Smolin


Add-in Express team


Posts: 17306
Joined: 2006-05-11
Hi Omer,

There are many possible reasons for this.

Please start checking the possibilities with The add-in doesn't work. I'll also need that article: Registry Keys.

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 14 Sep, 2010 12:14:52 Top
Omer Herera




Posts: 40
Joined: 2010-05-12
I think this is not the problem, correct me if I'm wrong, because if I add an ADXRibbonTab(with butons, the new ribbon tabs appears in the excel application, the problem is if I use the Toolbar.

This is the log:
Add-in Express Loader Log File: 09/14/2010 22:38:53

Startup directory: C:\Documents and Settings\omer.herera\Desktop\Testting.C#\Excel.COM.add.In\Excel.COM.add.In\bin\Debug\
Loader version: 6.1.3044
------------------
22:38:53 624 3640 Start.
22:38:53 624 3640 Reading the registry key 'HKEY_CLASSES_ROOT\CLSID\{45D7E0DB-7BC0-421C-AFE8-98240DFE1C8B}'
22:38:53 624 3640 Success. The registry key 'HKEY_CLASSES_ROOT\CLSID\{45D7E0DB-7BC0-421C-AFE8-98240DFE1C8B}' is closed.
22:38:53 624 3640 Converting the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID from string.
22:38:53 624 3640 Success.
22:38:53 624 3640 Attempting to get the class object by the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID.
22:38:53 624 3640 Success.
22:38:53 624 3640 Creating a new instance of the add-in loader.
22:38:53 624 3640 Success.
22:38:53 624 3640 Loading the configuration from the system registry.
22:38:53 624 3640 Getting the latest CLR version.
22:38:53 624 3640 The latest CLR version is 'v2.0.50727'.
22:38:53 624 3640 The configuration has been loaded successfully.
22:38:53 624 3640 Runtime version: v2.0.50727.
22:38:53 624 3640 Assembly name: Excel.COM.add.In, PublicKeyToken=5578B12E780616CB.
22:38:53 624 3640 Class name: ExcelCOMaddIn.AddinModule.
22:38:53 624 3640 Attempting to create a new instance of the managed add-in class: CLR - v2.0.50727
22:38:53 624 3640 Loading CLR: v2.0.50727.
22:38:53 624 3640 Calling CLRCreateInstance method.
22:38:53 624 3640 Failed.
22:38:53 624 3640 The loader will try to use the old Framework API.
22:38:53 624 3640 The CLR v2.0.50727 has been initialized successfully.
22:38:53 624 3640 Creating a new domain setup.
22:38:53 624 3640 Success.
22:38:53 624 3640 Getting the add-in directory.
22:38:53 624 3640 Success. The directory is 'C:\Documents and Settings\<username>\Desktop\Testting.C#\Excel.COM.add.In\Excel.COM.add.In\bin\Debug\'
22:38:53 624 3640 The configuration file is 'C:\Documents and Settings\<username>\Desktop\Testting.C#\Excel.COM.add.In\Excel.COM.add.In\bin\Debug\app.config'
22:38:53 624 3640 The 'shadow copy' is enabled.
22:38:53 624 3640 Creating a new application domain.
22:38:53 624 3640 Success.
22:38:53 624 3640 Unwrapping the managed class.
22:38:53 624 3640 Success.
22:38:53 624 3640 Querying the add-in extensibility.
22:38:53 624 3640 Querying the custom task panes.
22:38:53 624 3640 Querying the ribbon extensibility.
22:38:53 624 3640 Success.
22:38:53 624 3640 Querying the form regions.
22:38:53 624 3640 Success.
22:38:53 624 3640 Getting the dispid of the 'Dispose' method.
22:38:53 624 3640 Success.
22:38:53 624 3640 The managed add-in class has been created successfully.

I see the error:
22:38:53 624 3640 Loading CLR: v2.0.50727.
22:38:53 624 3640 Calling CLRCreateInstance method.
22:38:53 624 3640 Failed.

Any Ideas?
Thanks
Posted 14 Sep, 2010 15:46:26 Top
Omer Herera




Posts: 40
Joined: 2010-05-12
I found the solution:
If I set the property of the ADXCommandBar
UseForRibbon = true
I see it Add-Ins Ribbon tab
Thanks
Posted 14 Sep, 2010 15:56:31 Top
Andrei Smolin


Add-in Express team


Posts: 17306
Joined: 2006-05-11
Hi Omer,

Thank you very much for letting me know. Yes, to show a command bar on the Add-ins tab in the Ribbon UI, you need to set the UseForRibbon property of the command bar component to True. Nevertheless, I suggest that you consider using Ribbon component because they look more professional and familiar to the end-user.

22:38:53 624 3640 Calling CLRCreateInstance method.
22:38:53 624 3640 Failed.
22:38:53 624 3640 The loader will try to use the old Framework API.


These are consequences of installing and removing a beta of .NET Framework 4.0 on your PC.

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 15 Sep, 2010 04:13:32 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Omer,

Good news! Thank you for letting us know :-)
.NET, Extended MAPI, Windows Phone & RT
Posted 15 Sep, 2010 04:13:38 Top