how to create and download excel document using asp.net

后端 未结 4 413
予麋鹿
予麋鹿 2020-12-08 06:04

How to create and download excel document using asp.net ?

The purpose is to use xml, linq or whatever to send an excel document to a customer via a browser.

4条回答
  •  自闭症患者
    2020-12-08 06:10

    just set Response.ContentType = "application/vnd.ms-excel" and your page will rendered as an excel sheet on the clients browser

    Sample code here

提交回复
热议问题