.net howtos

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

.net howtos
 
Guest


Guest


add-in express for vcl has a lot of hints in the howtos section. but i cannot find it for add-in net.
where do i find it? thanks.
Posted 06 Jul, 2004 03:36:12 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
You can find the .NET howtos section on our website this evening.

Good luck.
Posted 06 Jul, 2004 03:46:49 Top
ong beng hin




Posts: 9
Joined: 2004-08-22
Have just purchased vb .net version 2 and trying to feel around the software.
Have installed the ADX Toys .Net and Add-in works fine. But if I then uninstalled it via Control Panel -> Add/Remove Program, it shows deleted, but if I fired up EXcel again, the Add-In is still with Excel. My question is: How to delete it from Excel completely?? I'm using EXcel 10.

Any help will be very much appreciated.

Posted 22 Aug, 2004 02:11:09 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi,

I have just tested this situation and it works fine.
I think that your problem is in Custome Actions editor of deployment project. You need to have the following settings in your Custome Actions editor:
Install
AddinExpress.MSO.dll
Commit
Rollback
AddinExpress.MSO.dll
Uninstall
AddinExpress.MSO.dll

All actions have got the CustomActionData property. Set this property to "/Addin="[TARGETDIR]\XLToys.dll" /ProgId=XLToys.AddinModule" for all actions. It is necessary to inform Add-in Express .NET which addin should be uninstalled.
Posted 23 Aug, 2004 05:03:19 Top
ong beng hin




Posts: 9
Joined: 2004-08-22
Not too sure what you mean by:-
QUOTE
"I think that your problem is in Custome Actions editor of deployment project. You need to have the following settings in your Custome Actions editor:
Install
AddinExpress.MSO.dll
Commit
Rollback
AddinExpress.MSO.dll
Uninstall
AddinExpress.MSO.dll"
UNQUOTE

1) Where can I find Custome Actions editor of deployment project in the IDE?



Posted 23 Aug, 2004 08:38:47 Top
Sven Heitmann




Posts: 193
Joined: 2004-08-23
select the setup project, right click with mouse -> view -> customized actions
Best regards,

Sven Heitmann
Posted 23 Aug, 2004 08:44:00 Top
Guest


Guest


Hi Sven,

Thanks for your quick reply.
Posted 23 Aug, 2004 08:53:14 Top
ong beng hin




Posts: 9
Joined: 2004-08-22
OK got to Customized Actions, all setting suggested by Sergey are correct.
But now I have this problem:-
I set the position property of adxCommandBar1 to adxMsoBarMenuBar, run debug mode (F5), but the host application (Excel) gave an Error message box with title "Office" and error message as "unspecified error". I then close Excel and exit the project. Now every time I fire up Excel, this "unspecified error" always appear.
I then try to use regsvr32 to uninstall manually the AddinExpress.MSO.dll, but got a message saying "AddinExpress.MSO.dll was loaded, but the DllUnregisterServer entry point was not found." Could it be that AddinExpress.MSO.dll was not properly unloaded whenever I hit error in debuging??
How can I get rid of the "unspecified error" message in Excel??

Can anyone help??
Posted 24 Aug, 2004 05:21:41 Top
Sven Heitmann




Posts: 193
Joined: 2004-08-23
in office applications there is a command where a dialog is show with all installed/registered com addins for this application...

unfortunately its not shown by default, you have to customize your excel commandbars (tools->customize or right click on a command bar -> customize)

change to the commands tab and select the category "tools"
on the left side you will find (after some scrolling) a command called "COM Addins..."

drag and drop him to any command bar and press ok

now click onto the button you've created and you will see a dialog with your addins where you can manage the installed addins

to find the problem with your addin i would recommend to set a breakpoint onto the "InitializeComponent" Method

then you should find where the problem occures

One notice:
i think the AddInExpress.MSO.dll is just a helper dll with the parent classes and interfaces for your addin and helper methods to register/unregister your addin into the registry
Best regards,

Sven Heitmann
Posted 24 Aug, 2004 05:50:12 Top
Eugene Starostin


ADX Team
Add-in Express team


Posts: 430
Joined: 2004-04-05
Hi Sven,

You cannot add a new menu bar. In this case we added this item to the ADXCommandBarType enumeration because you can attach ADXCommandBar to the main menu and get its type namely adxMsoMenuBar.

To unregister COM add-in assemlies you should use the regasm utility. But then you will get an exception anew because the add-in must start the hostapp to remove its command bars.

Just remove the add-in key from the regpath
HKEY_CURRENT_USER\Software\Microsoft\Office\Excel\AddIns
Posted 24 Aug, 2004 06:01:18 Top