English 中文(简体)
如何把MS Word下载到某个特定地点
原标题:How to force an MS Word download to a particular location

我使用以下代码将MS Word文档下载到一个缺省下载夹。 但我需要将该文件下载到一个具体地点。 我如何能够这样做?

http://www.ohchr.org。

<cfcontent type="application/msword">
<cfheader name="content-Disposition" value="attachment;filename=Simple_run.doc">
最佳回答

你们可以使用该守则,将管理语言文件保存到特定地点。

通知 Email content as document. 幸福 co。

<cfsavecontent variable="whatever">
    <cfinclude template="noticeEmail.cfm">
</cfsavecontent>   
<cffile action="WRITE" file="#WordFilePath#.doc" output="#whatever#"> 
问题回答

你只能向客户发送档案。 用户代理人的工作是决定如何处理所发送的档案。 一些浏览器将促使用户到现场,另一些浏览器将不填写下载目录。 这不能由服务器决定。

你们能够这样做。 目的地由浏览器和系统偏好而不是网页控制。 你们可以确定档案名称,但这样一来。 这既不是一种骗局,也不是一种监督,而是故意阻止网站将用户引入书写系统档案。

如果你控制客户机器(如内联网),你还有几个选择。 最简单的是使用一种习惯性,然后撰写一个小方案,把实际的档案系统复制件送到目标夹。





相关问题
JQuery AJAX .load - flash chart doesnt load in IE

An IE issue has me completely stumped. I have a coldfusion page that uses JQuery s AJAX .load function to load in a new flash file that is generated by coldFusion s cfchart tag. This works completely ...

Best Coldfusion Library for OpenID [closed]

I am getting ready to start a project that requires using OpenID within Coldfusion 8. I have found a number of different options and was wondering what has worked the best, get s the most support, ...

Find ColdFusion Generated ID

Is there a way to find the elements generated by ColdFusion s <CFLayout> and <CFLayoutArea> tags? These tags: <cflayout type="tab" name="MyAccount"> <cflayoutarea name="...

ColdFusion COM error

I am upgrading from CF4.5 to CF8. Calls to COM dll s that used to work in version 4.5 now throw a "Complex object types cannot be converted to simple values.." error. The COM object has a few arrays ...

What s the best way to write engine-specific CFML code?

Sometimes it is necessary to write different code for Adobe ColdFusion vs Railo vs OpenBD, due to differences in implementation. Do people have a specific method that they use for this? For example, ...

热门标签