MSDN-WhiteKnight / WinformsExcel

Library that allows to host MS Excel interface in Windows Forms application as a user control
http://smallsoft2.blogspot.com/2016/11/winforms-excel-library.html
BSD 3-Clause "New" or "Revised" License
15 stars 4 forks source link
csharp csharp-library custom-controls dotnet excel gui library windows windows-forms

WinForms Excel Library (.NET Component)

Nuget

License: BSD 3-Clause

Requirements

Overview

WinForms Excel Library allows to host MS Excel interface in Windows Forms application as a user control in order to display and edit one or more tables of data. The Excel application is started in different process, but the interface is fully integrated into your application as for any usual control. Basically, it works like DataGridView, but enables user to take advantage of various data processing and visualization capabilities of MS Excel, which might be useful in scientific, engineering or financial applications. The library interacts with Excel via Primary Interop Assemblies. Currently implemented functionality:

The library distribution package contains demo application project (Visual Studio 2010)

See documentation for more information.

Errors

System.Runtime.InteropServices.COMException (HRESULT 0x800A03EC) when trying to set cell content. This error happens when you try to programmatically set the content of the cell that user is currently editing (i.e., when user double clicked the cell and Excel entered edit mode on it, which displays input caret inside cell and enables user to type text). The only current workaround is to catch exception an ask user to exit from edit more by single-clicking on some other cell.