Click here to Skip to main content
15,900,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please advice me best way to create or fill excel files from c# application
or is there any component for this
please help this is very important for me.
i need detail tutorial
Posted

Hi,
It depends on what you want to do exactly.
One way is to use office components in you App. (this)

Another one is to create csv files. (Although CSV files are not Excel files but Excel can open and edit them). So it is good when you just want to write some data and view them formatted in excel.
Another way could be using SQL Server. this

And the last way is using Ado.Net this

Hope those can help you.

 
Share this answer
 
v2
hello; It depends from where you want to export your data to excel for example if you have a datagridview so you can you this article link[^]

regards..
 
Share this answer
 
I have used the interoperability approach and oledb approach, and office components was little bit slower.
 
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