Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miladsoft/npoi
Import and Export Excel in ASP.NET Core 8.0 Razor Pages ππ
https://github.com/miladsoft/npoi
asp-net-core excel office word xlsx
Last synced: 12 days ago
JSON representation
Import and Export Excel in ASP.NET Core 8.0 Razor Pages ππ
- Host: GitHub
- URL: https://github.com/miladsoft/npoi
- Owner: miladsoft
- License: unlicense
- Created: 2018-07-21T20:28:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-17T10:40:50.000Z (5 months ago)
- Last Synced: 2024-10-11T02:49:34.756Z (28 days ago)
- Topics: asp-net-core, excel, office, word, xlsx
- Language: C#
- Homepage:
- Size: 20.3 MB
- Stars: 20
- Watchers: 4
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Import and Export Excel in ASP.NET Core 8.0 Razor Pages ππ
NPOI is a powerful and free tool that supports xls, xlsx, and docx extensions. This project is the .NET version of the POI Java project at [Apache POI](http://poi.apache.org/). POI is an open-source project that enables you to read/write XLS, DOC, and PPT files. It covers most features of Excel, such as styling, formatting, data formulas, and extracting images. The best part is, it doesn't require Microsoft Office to be installed on the server. π
With NPOI, you can:
- Generate Excel reports without needing Microsoft Office installed on your server, offering more efficiency than using Microsoft Excel ActiveX in the background.
- Extract text from Office documents to implement full-text indexing features, commonly used to create search engines.
- Extract images from Office documents.
- Generate Excel sheets with formulas.Let's create an ASP.NET Core Razor Page application. Open Visual Studio 2022, go to File -> New Project -> Select ASP.NET Core Web Application. Enter the project name and click βOKβ. Select βWeb Applicationβ from the next dialog.
Once the project is created, install the NPOI package for .NET Core by running the following command in the Package Manager Console:
```bash
PM> Install-Package DotNetCore.NPOI
```### Features π
#### Import Excel Files π₯
Weβll upload an Excel file to the server and then process it using NPOI.#### Export Excel Files π€
Weβll create an Excel file with some dummy data using NPOI and download it via the browser.## Export xlsx/xls in ASP.NET Core
![Export xlsx/xls in ASP.NET Core](/pic/Export-excel-in-ASP.NET-Core-2.0-Razor-Pages.gif)
-------------
## Import xlsx/xls in ASP.NET Core
![Import xlsx/xls in ASP.NET Core](/pic/Import-and-Export-excel-in-ASP.NET-Core-2.0-Razor-Pages.gif)
Happy coding! π»β¨