How to save created excel file to Client pc in ASP.NET

前端 未结 4 561
南旧
南旧 2021-01-25 06:26

I am creating a excel report and html report in asp.net when I clik the button and my application create it and save to the client desktop but, it is not working correctly becau

4条回答
  •  不思量自难忘°
    2021-01-25 06:49

    You can not directly save it to a specific clientside location. What you can do is returning the file with that request so that on the browser side a "save file" dialog pops up.

提交回复
热议问题