Search code examples
.netexceloffice-interop

Create Excel File programatically in C# without Microsoft.Office.Interop.Excel


I need to create and populate excel file in c#. With Microsoft.Office.Interop.Excel , it can be created easily but it need to install Office on server. I am looking for solution without Office installation and without any third party components.


Solution

  • It depends, if you just need to create an export that your user need to be able to open with Excel, then you might think of creating a CSV export.

    Otherwise you may consider NPOI. I know it's a third-party lib, but it's open source :)