Click here to Skip to main content
15,900,973 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
how to export textbox value in excel in c#
Posted

Sergey's answer is very good. In addition to it, i suggest you to use OLE Automation[^] (Interop[^]) and ADO.NET OleDb[^] methods too.

I can't help you more, because of non detailed question.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 30-Sep-14 9:29am    
Voted 4. The biggest problem is having Office installed in user; OleDb is probably not adequate.
—SA
Maciej Los 30-Sep-14 11:15am    
Thank you, Sergey ;)
You can use Open XML SDK.

Please see this CodeProject answer: Creating basic Excel workbook with Open XML[^].

See also my past answers referenced in this one: How to add microsoft excel 15.0 object library from Add Reference in MS Visual Studio 2010[^].

—SA
 
Share this answer
 
Comments
Maciej Los 30-Sep-14 2:19am    
+5
Sergey Alexandrovich Kryukov 30-Sep-14 3:04am    
Thank you, Maciej.
—SA
Maciej Los 30-Sep-14 5:11am    
Welcome ;)
Have you seen my answer?
Sergey Alexandrovich Kryukov 30-Sep-14 9:29am    
Sure.
—SA

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