<p>I have been searching on the web for some example code on how we can write a custom ActiveX Control for use in Excel using .NET but so far I have found old articles suggesting that it is not supported. </p>

<p>The application we are building uses Excel as a report writer so we which to add some custom controls to the worksheets to provide a richer experience. From the research I have done so far it appears that some ActiveX Controls can only be hosted in IE and hence I need to ensure that any approach taken works with Excel as a host.</p>

<p>The link <a href="http://www.codeproject.com/KB/miscctrl/exposingdotnetcontrols.aspx" rel="nofollow noreferrer">http://www.codeproject.com/KB/miscctrl/exposingdotnetcontrols.aspx</a> mentions the following:</p>

<p><strong>CAVEAT</strong>: As this support has been dropped from Beta2 of .NET, don't blame me if it fries your PC or toasts the cat.</p>

<p>Can anybody give me an indication if it is possible using .NET 1.1 and if so to any pointers on best practices?</p>

[{'answer_id': 60325, 'author': 'rp.', 'author_id': 2536, 'author_profile': 'https://Stackoverflow.com/users/2536', 'pm_score': 0, 'selected': False, 'text': '<p>I would thought that you\'re out of luck, but did find this:</p>\n\n<p><a href="http://dotnetslackers.com/articles/csharp/WritingAnActiveXControlInCSharp.aspx" rel="nofollow noreferrer">http://dotnetslackers.com/articles/csharp/WritingAnActiveXControlInCSharp.aspx</a></p>\n\n<p>Gives me the willies... but it might just right for you.</p>\n'}, {'answer_id': 82617, 'author': 'David Snowsill', 'author_id': 6218, 'author_profile': 'https://Stackoverflow.com/users/6218', 'pm_score': 0, 'selected': False, 'text': '<p>Further information on creating ActiveX Controls using C# can be found below although these articles seem to use IE as a Hosting Container not Excel.</p>\n\n<p><a href="http://www.ondotnet.com/pub/a/dotnet/2003/01/20/winformshosting.html" rel="nofollow noreferrer">http://www.ondotnet.com/pub/a/dotnet/2003/01/20/winformshosting.html</a></p>\n\n<p><a href="http://www.codeproject.com/KB/miscctrl/exposingdotnetcontrols.aspx" rel="nofollow noreferrer">http://www.codeproject.com/KB/miscctrl/exposingdotnetcontrols.aspx</a> </p>\n'}, {'answer_id': 318395, 'author': 'Dirk Vollmar', 'author_id': 40347, 'author_profile': 'https://Stackoverflow.com/users/40347', 'pm_score': 2, 'selected': False, 'text': '<p>Andrew Whitechapel writes about managed controls as ActiveX controls in Office documents. You can read his article here:</p>\n\n<blockquote>\n  <p><strong><a href="http://blogs.msdn.com/andreww/archive/2008/11/24/using-managed-controls-as-activex-controls.aspx" rel="nofollow noreferrer">Using Managed Controls as ActiveX Controls</a></strong></p>\n</blockquote>\n'}]
['https://Stackoverflow.com/questions/60199', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/6218/']