Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
my system have not install MS Office i want to work with excel in asp.net like import or export data which provider may i use.in C#
Posted

Use this library : http://epplus.codeplex.com/[^]
 
Share this answer
 
Comments
Herman<T>.Instance 27-Apr-15 11:10am    
that's a good and eaqsy one. Like it!
Mehdi Gholam 27-Apr-15 12:22pm    
Cheers!
Certainly it would be good to have Office installed, but the target computer won't need it. Libre Office could work as a good substitute for it: http://en.wikipedia.org/wiki/LibreOffice[^].

It has nothing to do with your product; you would need office only to test your work. For the approach based on Microsoft Open XML SDK and other approaches, please see my past answers referenced in this one: How to add microsoft excel 15.0 object library from Add Reference in MS Visual Studio 2010[^].

See also this CodeProject article: Creating basic Excel workbook with Open XML[^].

—SA
 
Share this answer
 
You can use Open XML SDK which is from Microsoft, or there are third party components you need to pay for like Aspose. If you only need basic sheet manipulation you can also use the Excel ODBC driver which lets you treat Excel sheets like a database table.

Google for more info and examples of the above.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900