Excel 与 asp.net 的问题

发布于 2024-12-07 20:07:47 字数 102 浏览 4 评论 0原文

我正在写一个客户端脚本。

我需要从客户端位置读取 Excel 文件,进行一些修改并将其返回。我可以读取文件并进行修改,但如何返回它?

我还必须考虑网站的性能。

I am writing a client-side script.

I need to read an Excel file from the client location, do some modifications and return it. I can read the file and do the modification but how do I return it?

I also have to consider the performance of the website.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鹤舞 2024-12-14 20:07:47

“返回”是指将其保存回客户端位置吗?如果不是不可能的话,这将是很困难的,除非您以某种方式通过一些可怕的 ActiveX 控件或类似控件拥有对其文件系统的写入权限。

相反,您应该使用 Excel MIME 类型提供文件并让用户将其保存到该位置。

查看这些答案以获取更多信息:设置 Excel 文档的 mime 类型

By "return it", do you mean save it back to the Client location? That's going to be hard if not impossible unless you somehow have write permissions to their filesystem via some horrid ActiveX control or similar.

Instead, you should serve the file using the Excel MIME type and let the user save it to the location.

Take a look at these answers for more info: Setting mime type for excel document

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文