I want to create excel sheet from asp.net application using C# language.
please reply me how to create it and also if having source. I don't know how to create it.
Also I want drop down list in one of column. how we can do this.
Please reply me its urgent....
Regards, Girish
Another option (use the third party component) is SmartXLS.
Another option (no third party tools) is treat Excel Workbooks as ADO.NET Data Sources. Ref.: http://support.microsoft.com/kb/316934
try spread Sheet Gear third party component
http://www.spreadsheetgear.com/
An OpenSource Excel export library.
http://excelexportlib.codeplex.com/
Another OpenSource Excel export library.
http://xmlspreadgear.codeplex.com/
You can use Excel COM objects to create Excel sheets in ASP.NET.
Try this link.
I'm using the ExcelPackage library which uses the OpenXML standard file format from Office 2007 and makes it really easy to create your own Excel sheets fro your C# or VB.NET app with little effort.
WORD OF WARNING: it has come to my attention (I didn't pay enough attention to that fact) that the
ExcelPackage
on CodePlex is actually licensed under a rather strict GPL license, which makes it virtually unusable for anyone but hobbyists. If you use it, you'll have to reveal all your source code of stuff produced with it.It might look something like this:
Totally free, available with source, doesn't require an installation of Office on the machine it runs on (e.g. your web server), no slow and messy COM interop - it just works like a charm! Very highly recommended.
Marc