Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/msdn-whiteknight/winformsexcel
Library that allows to host MS Excel interface in Windows Forms application as a user control
https://github.com/msdn-whiteknight/winformsexcel
csharp csharp-library custom-controls dotnet excel gui library windows windows-forms
Last synced: 23 days ago
JSON representation
Library that allows to host MS Excel interface in Windows Forms application as a user control
- Host: GitHub
- URL: https://github.com/msdn-whiteknight/winformsexcel
- Owner: MSDN-WhiteKnight
- License: bsd-3-clause
- Created: 2020-05-09T07:44:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-10T16:15:13.000Z (about 3 years ago)
- Last Synced: 2024-10-03T07:45:19.389Z (about 1 month ago)
- Topics: csharp, csharp-library, custom-controls, dotnet, excel, gui, library, windows, windows-forms
- Language: C#
- Homepage: http://smallsoft2.blogspot.com/2016/11/winforms-excel-library.html
- Size: 825 KB
- Stars: 15
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WinForms Excel Library (.NET Component)
[![Nuget](https://img.shields.io/nuget/v/WinFormsExcel)](https://www.nuget.org/packages/WinFormsExcel/)
**License:** [BSD 3-Clause](LICENSE)
## Requirements
- .NET Framework 4.0+ or .NET Core 3.1+ (must be present on target machine)
- MS Excel 2003+ (must be present on target machine)
- Visual Studio 2010+ (for .NET Framework) or Visual Studio 2019+ (for .NET Core)## 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:
- Filling data from files, DataTable objects or manually on cell-by-cell basis;
- Displaying and editing one or several tables in your form in Excel GUI;
- Getting data back as DataTable objects or getting the content of specific cells;
- Saving data into file;
- Adding charts;
- Manipulating worksheets: adding, deleting, reordering, changing names, changing active sheet;
- Showing/hiding Excel formula bar and status bar;
- Direct access to Excel interoperability interfaces via Application object.The library distribution package contains demo application project (Visual Studio 2010)
See [documentation](http://smallsoft2.blogspot.com/2016/11/winforms-excel-library.html) 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.