Send query results to Excel from ASP.NET website

后端 未结 7 1063
失恋的感觉
失恋的感觉 2020-12-17 03:03

We let users create ad-hoc queries in our website. We would like to have the user select their criteria, then click submit and have the results streamed automatically to Ex

相关标签:
7条回答
  • 2020-12-17 03:30

    I'd recommend using a filehandler (.ashx) The only issue is creating the excel file from the DataTable. There are a lot of third party products that will do this for you (e.g. Infragistics provides a component that does just this).

    One thing I highly recommend against is using the Excel interop on your server...it's very heavyweight and isn't supported.

    0 讨论(0)
提交回复
热议问题