且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何打开一个现有的Excel文件?

更新时间:2023-11-24 19:38:16

您可以使用response.writefile(来自内存)发送文件作为对请求的响应.您还需要设置内容类型,然后如果用户具有Excel,则将为他们打开文件.
You can use response.writefile ( from memory ) to send a file as a response to a request. You need to also set the content type, and then if the user has Excel, the file will open for them.