如何从服务器下载word文档 [英] How to download a word document from server
本文介绍了如何从服务器下载word文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的网站中,一些细节使用文件流流保存到data.docx等word文档。现在我需要在保存按钮时将此文件保存到本地机器
怎么办?
In my website some details are save to a word document like data.docx using file stream stream. Now I need to save this file to local machine when I click Save button
How can do it?
推荐答案
您可以通过创建ASP.NET处理程序(.ashx)并使用此处描述的技术来完成此操作:
http://www.west-wind .com / weblog / posts / 2007 / May / 21 /下载-a-File-with-Save-As-Dialog-in-ASPNET [ ^ ]
希望这会有所帮助。
祝你好运,祝你有愉快的一天,
停止
Hi,
You can do this by creating a ASP.NET Handler (.ashx) and using the technique described here:
http://www.west-wind.com/weblog/posts/2007/May/21/Downloading-a-File-with-a-Save-As-Dialog-in-ASPNET[^]
Hope this helps.
Best regards and have a nice day,
Stops
这篇关于如何从服务器下载word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文