Hi.
I am exporting datatable dt to excel, it export the data but also it bind whole design of page, I am working in asp.net
How to avoid this situation ?
Thank You !
Hi.
I am exporting datatable dt to excel, it export the data but also it bind whole design of page, I am working in asp.net
How to avoid this situation ?
Thank You !
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
Vishal YelveRank #178 · 13.6K reputationPosted Apr 1, 2024, 10:46 AM EDT
Hi Sushant,
use OpenXml packages or CloseXml Package
http://www.dispatchertimer.com/tutorial/how-to-create-an-excel-file-in-net-using-openxml-part-2-export-a-collection-to-spreadsheet/
https://www.aspsnippets.com/questions/121935/Export-XML-file-to-Excel-with-ClosedXML-using-C-and-VBNet-in-ASPNet/