Convert Datatable to Excel
I have datatable with 28,000 rows and 518 columns. How should I convert the Datatable to Excel in Faster way.
P.s. This is a console application not Asp.net application.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit GuptaRank #190 · 12.8K reputationPosted Oct 7, 2019, 7:15 AM EDT
Sapna GirishRank #1,811 · 819 reputationPosted Oct 7, 2019, 4:27 PM EDT
Rahul KaushikRank #2,112 · 676 reputationPosted Oct 7, 2019, 9:34 PM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Oct 8, 2019, 5:58 AM EDT
Jaimin ShethiyaRank #177 · 13.7K reputationPosted Oct 8, 2019, 8:48 PM EDT
can you try below code for generate excel file.
Added nuget package for generate the excel file. ClosedXML
command for install: Install-Package ClosedXML
let me know if you have anything else.
Thanks.
Mageshwaran RRank #411 · 6.1K reputationPosted Nov 25, 2019, 5:06 AM EST