What is EPPlus?
- A library to manage Excel spreadsheets. EPPlus is a .NET library, which reads and writes Excel 2007/2010 or higher files, using Open Office XML format. It supports .XLSX, .XLSM Excel file format.
Why are we using EPPlus?
- First of all EPPlus is a free tool.
- We can do the same thing by using Microsoft interop Excel. When you like to do Server side office automation, which is not a supported scenario by Microsoft, follow the link :http://support.microsoft.com/kb/257757
How to attach EPPlus Library
- Option 1- Download it from : http://epplus.codeplex.com/
- Option 2- To install EPPlus, run the command given below in Package Manager Console.
PM> : Install-Package EPPlus.
EPPlus supports folllowing
- Cell Ranges
- Cell styling (Border, Color, Fill, Font, Number, Alignments)
- Charts
- Pictures
- Shapes
- Comments
- Tables
- Protection
- Encryption
- Pivot tables
- Data validation
- Conditional formatting
- VBA
- Formula calculation..etc
We will learn
- Create a demo of an EPPlus project, using .NET technologies (Language C#).
- using OfficeOpenXml;
- using System.IO;
- using System;
- //add these namespace
- class Program {
- static void Main(string[] args) {
- ExcelPackage ExcelPkg = new ExcelPackage();
- ExcelWorksheet wsSheet1 = ExcelPkg.Workbook.Worksheets.Add("Sheet1");
- using(ExcelRange Rng = wsSheet1.Cells[2, 2, 2, 2]) {
- Rng.Value = "Welcome to Everyday be coding - tutorials for beginners";
- Rng.Style.Font.Size = 16;
- Rng.Style.Font.Bold = true;
- Rng.Style.Font.Italic = true;
- }
- wsSheet1.Protection.IsProtected = false;
- wsSheet1.Protection.AllowSelectLockedCells = false;
- ExcelPkg.SaveAs(new FileInfo(@ "D:\New.xlsx"));
- }
- }
Now, build & execute the given code. File is (New.xlsx), which is stored on D: drive of the computer.


krishna moorthyPosted Sep 20, 2022, 12:54 PM
Hi , I need use filter excel sheet particular column . Example : Status column two type of data preset Yes and No. I need to filter Yes data only . can you please suggest how to proceed . Thanks .
Rohan DeshpandePosted Apr 12, 2021, 10:11 AM
Can I convert any RAW file to excel using EPPlus ? or EPPlus is just used for formatting in existing excel file ?
Frank MillerPosted Nov 22, 2019, 10:55 AM
Basically I want to suggest you use the ZetExcel tools for more than better result than others. Just try it and get results. Thanks
Former memberPosted Aug 13, 2018, 3:11 AM
Detailed blog with formatting examples: http://wp.me/p3Osmq-zr
Rajdip SarkarPosted Apr 24, 2017, 1:21 PM
Aspose Slides & Spire.Presentation both are not free. You need to purchase.
Former memberPosted Apr 21, 2017, 4:57 AM
Is there any free library exist which we can use to generate power point file generation with all the feature what we can do from ms power point apps.