Support for Office resident ActiveX Controls in VS2008?

  • Thread starter Thread starter Siegfried Heintze
  • Start date Start date
S

Siegfried Heintze

Previously I could write (supported) ActiveX controls for IE only. Has this
changed with VS2008? Does office support ActiveX controls written in VS2008?

What about older versions of office: will they support controls written in
VS2008?

Thanks,
Siegfried
 
Please forgive me but I don't see the connection between support for ActiveX
controls in VB6 and support for ActiveX controls in Microsoft Office. Are
you saying that since they are supported in VB6 they are also supported in
Microsoft Office 2007 and earlier?

thanks,
Siegfried
 
Siegfried Heintze said:
Please forgive me but I don't see the connection between support for
ActiveX controls in VB6 and support for ActiveX controls in Microsoft
Office. Are you saying that since they are supported in VB6 they are also
supported in Microsoft Office 2007 and earlier?

thanks,
Siegfried


No, Interop UserControls cannot be hosted in containers other the VB6 Forms.
The only supported host for ".NET user controls" is still IE.

Willy.
 
So back to my original question: can anyone tell me about writting MSOffice
resident ActiveX controls in C#/VS2008. Is it supported?
Thanks,
Siegfried
 
Siegfried Heintze said:
So back to my original question: can anyone tell me about writting
MSOffice
resident ActiveX controls in C#/VS2008. Is it supported?
Thanks,
Siegfried



This has nothing to do with the Version of VS, you simply can't author
ActiveX controls using any of the managed languages, if you need to author
AX controls ,your only option is to use an unmanaged tool like VB6, C++,
Delphi etc...
You can author *user controls* in C# (and any of the other managed
languages), but these are no ActiveX controls. The only "supported" host for
these type of controls is IE.

Willy.
 
As Willy says, the only way forward is managed user controls. Interestingly,
the browser will render it as an 'ActiveX' control but it will run in a
managed sandbox which brings other implications such as security yada yada.
See this link for more info
http://msmvps.com/blogs/alvin/archive/2006/08/03/106622.aspx

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
 
Back
Top