Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a excel file with sheets in C#?

Tags:

c#

openxml

I want to create an excel file say personinfo.xls with one work sheet say Person.

Is there a way in C# to do it ?

like image 999
Embedd_0913 Avatar asked Dec 31 '25 19:12

Embedd_0913


2 Answers

You can do that with MyXLS.

I have used it in a few project with great success.

Its opensource.

like image 129
Allan Simonsen Avatar answered Jan 02 '26 08:01

Allan Simonsen


Have you tried the Excel Interop? Is this for excel 2003/2007? If it is excel 2007 xml you can try

Carlos

SpreadsheetGear

ExcelPackage (Codeplex)

like image 20
Adriaan Stander Avatar answered Jan 02 '26 10:01

Adriaan Stander



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!