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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vishal YelvePosted Apr 1, 2024, 2:46 PM
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/