How to add dynamic (WinForm) control to worksheet?

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

How to add dynamic (WinForm) control to worksheet?
 
Josh Lim


Guest


Hi,

I'm building an Application-level addin.
I'm trying to embed a custom WinForms user control directly onto an Excel worksheet.

In VSTO, I used to be able to do this.
(MSDN Documentation: http://msdn.microsoft.com/en-us/library/vstudio/cc442981.aspx)
1. Creating a host item for the worksheet (Globals.Factory.GetVstoObject(sheet))
2. Adding the control on the host sheet item (hostSheet.AddControl(new WinFormControl(),x,y,width,height,"MyControl"))

But now that I've switched to ADX, I have no idea how to achieve this.

Can someone please help? What're the equivalent classes/methods to achieve this in ADX?


Thanks
Josh
Posted 14 Nov, 2012 02:44:30 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
Hi Josh,

This isn't supported by Add-in Express. Consider showing that control on a pane.


Andrei Smolin
Add-in Express Team Leader
Posted 14 Nov, 2012 02:49:26 Top