Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export object to excel using C#

What is the best way to export objet to excel file in C# (.net framework 3.5)?

Thanks in advance!

like image 879
isbn100 Avatar asked Jun 16 '26 18:06

isbn100


1 Answers

If it's tabular data, you could generate HTML tables and let Excel open it up intuitively. Otherwise I'd recommend COM Interop.

like image 67
code4life Avatar answered Jun 19 '26 07:06

code4life



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!