Winforms hosting excel spreadsheet
-
05-07-2019 - |
Question
Can I host an instance of excel application within a winforms application?
Meaning, I want to use the excel as my datagrid in a winforms application.
thank you for your input.
Solution
Not directly, but you can use a WebBrowser control to host Excel within your WinForms application as documented in this Microsoft article.
OTHER TIPS
You cannot host an Excel application inside of a Winform directly. You can, however, load up an Excel file from a WebBrowser control inside a Winform.
SpreadsheetGear for .NET comes with an Excel compatible spreadsheet control for Windows Forms.
You can download the free trial here if you want to try it out.
Disclaimer: I own SpreadsheetGear LLC
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow