' 输出副本的二进制字节流
Response.ContentType = "application/ms-excel"
Response.AppendHeader("Content-Disposition", "attachment;filename=info.xls")
Response.BinaryWrite(File.ReadAllBytes("filePath"))
' 删除副本
File.Delete(filePath)
.net 输出文件到客户端并删除
最新推荐文章于 2022-08-24 17:45:40 发布