CFCONTENT download name
I'm trying to create an MS Word doc based upon a query and information entered on a form preceeding this report processing template. In the processing template I've tried using: cfcontent type="application/msword" The query runs, but all the information I entered in the form preceeding it is lost. I've tried using: cfcontent type="application/rtf" This works. The query data and all the info from the preceeding form are there, and a download prompt comes up in the browser. HOWEVER, the initial filename in the download prompt is the name of the CFML template which processed it (reports.cfm). I want the name of the file that shows up in that download prompt to be report.doc so that the user won't have to think about about naming the file correctly when they select a place to save it. I've tried the technique suggested by Borkman Lee: http://servername/cfdocs/index.cfm/xyz.doc?fuseaction=showWordDoc It doesn't work on my server. Does anyone else know how to do this? Please copy me on your reply as the list sometimes take a few hours to send messages to me. Thanks! OH, and by the way - the first person to answer this correctly is going to get 2 free movie tickets. -- Mark Warrick Phone: (714) 547-5386 Efax.com Fax: (801) 730-7289 Personal Email: [EMAIL PROTECTED] Personal URL: http://www.warrick.net Business Email: [EMAIL PROTECTED] Business URL: http://www.fusioneers.com ICQ: 346566 -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebarRsts or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED]
Re: CFCONTENT download name
Use this before your CFCONTENT tag: CFHEADER NAME="Content-Disposition" VALUE="inline; filename=myworddoc.doc" tom - Original Message - From: "Warrick, Mark" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Friday, October 20, 2000 2:32 PM Subject: CFCONTENT download name I'm trying to create an MS Word doc based upon a query and information entered on a form preceeding this report processing template. In the processing template I've tried using: cfcontent type="application/msword" The query runs, but all the information I entered in the form preceeding it is lost. I've tried using: cfcontent type="application/rtf" This works. The query data and all the info from the preceeding form are there, and a download prompt comes up in the browser. HOWEVER, the initial filename in the download prompt is the name of the CFML template which processed it (reports.cfm). I want the name of the file that shows up in that download prompt to be report.doc so that the user won't have to think about about naming the file correctly when they select a place to save it. I've tried the technique suggested by Borkman Lee: http://servername/cfdocs/index.cfm/xyz.doc?fuseaction=showWordDoc It doesn't work on my server. Does anyone else know how to do this? Please copy me on your reply as the list sometimes take a few hours to send messages to me. Thanks! OH, and by the way - the first person to answer this correctly is going to get 2 free movie tickets. -- Mark Warrick Phone: (714) 547-5386 Efax.com Fax: (801) 730-7289 Personal Email: [EMAIL PROTECTED] Personal URL: http://www.warrick.net Business Email: [EMAIL PROTECTED] Business URL: http://www.fusioneers.com ICQ: 346566 -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED] Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED]
RE: CFCONTENT download name
I'm sorry. This doesn't work. The same problem happens - I loose all the data from the previous form. ---mark -- Mark Warrick Phone: (714) 547-5386 Efax.com Fax: (801) 730-7289 Personal Email: [EMAIL PROTECTED] Personal URL: http://www.warrick.net Business Email: [EMAIL PROTECTED] Business URL: http://www.fusioneers.com ICQ: 346566 -- -Original Message- From: tom muck [mailto:[EMAIL PROTECTED]] Sent: Friday, October 20, 2000 11:36 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: CFCONTENT download name Use this before your CFCONTENT tag: CFHEADER NAME="Content-Disposition" VALUE="inline; filename=myworddoc.doc" tom - Original Message - From: "Warrick, Mark" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Friday, October 20, 2000 2:32 PM Subject: CFCONTENT download name I'm trying to create an MS Word doc based upon a query and information entered on a form preceeding this report processing template. In the processing template I've tried using: cfcontent type="application/msword" The query runs, but all the information I entered in the form preceeding it is lost. I've tried using: cfcontent type="application/rtf" This works. The query data and all the info from the preceeding form are there, and a download prompt comes up in the browser. HOWEVER, the initial filename in the download prompt is the name of the CFML template which processed it (reports.cfm). I want the name of the file that shows up in that download prompt to be report.doc so that the user won't have to think about about naming the file correctly when they select a place to save it. I've tried the technique suggested by Borkman Lee: http://servername/cfdocs/index.cfm/xyz.doc?fuseaction=showWordDoc It doesn't work on my server. Does anyone else know how to do this? Please copy me on your reply as the list sometimes take a few hours to send messages to me. Thanks! OH, and by the way - the first person to answer this correctly is going to get 2 free movie tickets. -- Mark Warrick Phone: (714) 547-5386 Efax.com Fax: (801) 730-7289 Personal Email: [EMAIL PROTECTED] Personal URL: http://www.warrick.net Business Email: [EMAIL PROTECTED] Business URL: http://www.fusioneers.com ICQ: 346566 -- -- -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED] Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebarRsts or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED]
RE: CFCONTENT download name
Hi, use CFCONTENT type="application/rtf" FILE="your_file" Good Luck, Gastón -Mensaje original- De: Warrick, Mark [SMTP:[EMAIL PROTECTED]] Enviado el: Viernes 20 de Octubre de 2000 16:33 Para: CF-Talk Asunto: CFCONTENT download name I'm trying to create an MS Word doc based upon a query and information entered on a form preceeding this report processing template. In the processing template I've tried using: cfcontent type="application/msword" The query runs, but all the information I entered in the form preceeding it is lost. I've tried using: cfcontent type="application/rtf" This works. The query data and all the info from the preceeding form are there, and a download prompt comes up in the browser. HOWEVER, the initial filename in the download prompt is the name of the CFML template which processed it (reports.cfm). I want the name of the file that shows up in that download prompt to be report.doc so that the user won't have to think about about naming the file correctly when they select a place to save it. I've tried the technique suggested by Borkman Lee: http://servername/cfdocs/index.cfm/xyz.doc?fuseaction=showWordDoc It doesn't work on my server. Does anyone else know how to do this? Please copy me on your reply as the list sometimes take a few hours to send messages to me. Thanks! OH, and by the way - the first person to answer this correctly is going to get 2 free movie tickets. -- Mark Warrick Phone: (714) 547-5386 Efax.com Fax: (801) 730-7289 Personal Email: [EMAIL PROTECTED] Personal URL: http://www.warrick.net Business Email: [EMAIL PROTECTED] Business URL: http://www.fusioneers.com ICQ: 346566 -- -- -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED] Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebarRsts or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED]
RE: CFCONTENT download name
Sorry. This doesn't work. The form variables lost. -- Mark Warrick Phone: (714) 547-5386 Efax.com Fax: (801) 730-7289 Personal Email: [EMAIL PROTECTED] Personal URL: http://www.warrick.net Business Email: [EMAIL PROTECTED] Business URL: http://www.fusioneers.com ICQ: 346566 -- -Original Message- From: tom muck [mailto:[EMAIL PROTECTED]] Sent: Friday, October 20, 2000 11:36 AM To: CF-Talk Cc: [EMAIL PROTECTED] Subject: Re: CFCONTENT download name Use this before your CFCONTENT tag: CFHEADER NAME="Content-Disposition" VALUE="inline; filename=myworddoc.doc" tom - Original Message - From: "Warrick, Mark" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Friday, October 20, 2000 2:32 PM Subject: CFCONTENT download name I'm trying to create an MS Word doc based upon a query and information entered on a form preceeding this report processing template. In the processing template I've tried using: cfcontent type="application/msword" The query runs, but all the information I entered in the form preceeding it is lost. I've tried using: cfcontent type="application/rtf" This works. The query data and all the info from the preceeding form are there, and a download prompt comes up in the browser. HOWEVER, the initial filename in the download prompt is the name of the CFML template which processed it (reports.cfm). I want the name of the file that shows up in that download prompt to be report.doc so that the user won't have to think about about naming the file correctly when they select a place to save it. I've tried the technique suggested by Borkman Lee: http://servername/cfdocs/index.cfm/xyz.doc?fuseaction=showWordDoc It doesn't work on my server. Does anyone else know how to do this? Please copy me on your reply as the list sometimes take a few hours to send messages to me. Thanks! OH, and by the way - the first person to answer this correctly is going to get 2 free movie tickets. -- Mark Warrick Phone: (714) 547-5386 Efax.com Fax: (801) 730-7289 Personal Email: [EMAIL PROTECTED] Personal URL: http://www.warrick.net Business Email: [EMAIL PROTECTED] Business URL: http://www.fusioneers.com ICQ: 346566 -- -- -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED] -- -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED] Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebarRsts or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED]
RE: CFCONTENT download name
I'm trying to create an MS Word doc based upon a query and information entered on a form preceeding this report processing template. In the processing template I've tried using: cfcontent type="application/msword" The query runs, but all the information I entered in the form preceeding it is lost. I've tried using: cfcontent type="application/rtf" This works. The query data and all the info from the preceeding form are there, and a download prompt comes up in the browser. HOWEVER, the initial filename in the download prompt is the name of the CFML template which processed it (reports.cfm). I want the name of the file that shows up in that download prompt to be report.doc so that the user won't have to think about naming the file correctly when they select a place to save it. ... Use this before your CFCONTENT tag: CFHEADER NAME="Content-Disposition" VALUE="inline; filename=myworddoc.doc" ... Sorry. This doesn't work. The form variables are lost. It should work, as should using a "fake" URL on a pre-SP6 server. There are examples of both at: http://www.figleaf.com/demo/mimetest/ If you can't get it to work either way, you might post the code. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED]
RE: CFCONTENT download name
That might explain the problem. The server is running SP6. ---mark -- Mark Warrick Phone: (714) 547-5386 Efax.com Fax: (801) 730-7289 Personal Email: [EMAIL PROTECTED] Personal URL: http://www.warrick.net Business Email: [EMAIL PROTECTED] Business URL: http://www.fusioneers.com ICQ: 346566 -- -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: Friday, October 20, 2000 12:37 PM To: CF-Talk Cc: '[EMAIL PROTECTED]' Subject: RE: CFCONTENT download name I'm trying to create an MS Word doc based upon a query and information entered on a form preceeding this report processing template. In the processing template I've tried using: cfcontent type="application/msword" The query runs, but all the information I entered in the form preceeding it is lost. I've tried using: cfcontent type="application/rtf" This works. The query data and all the info from the preceeding form are there, and a download prompt comes up in the browser. HOWEVER, the initial filename in the download prompt is the name of the CFML template which processed it (reports.cfm). I want the name of the file that shows up in that download prompt to be report.doc so that the user won't have to think about naming the file correctly when they select a place to save it. ... Use this before your CFCONTENT tag: CFHEADER NAME="Content-Disposition" VALUE="inline; filename=myworddoc.doc" ... Sorry. This doesn't work. The form variables are lost. It should work, as should using a "fake" URL on a pre-SP6 server. There are examples of both at: http://www.figleaf.com/demo/mimetest/ If you can't get it to work either way, you might post the code. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 -- -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED] Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebarRsts or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED]
RE: CFCONTENT download name
That might explain the problem. The server is running SP6. That shouldn't affect the use of the CFHEADER tag to specify the file name, as suggested by Tom Muck. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED]
RE: CFCONTENT download name
Use this before your CFCONTENT tag: CFHEADER NAME="Content-Disposition" VALUE="inline; filename=myworddoc.doc" ... Sorry. This doesn't work. The form variables are lost. It should work, as should using a "fake" URL on a pre-SP6 server. It's worked for me on NT4 as well as W2K. And everything I've tried it on since seeing dave's neat little trick a few month's back. :) I think you need to post a bit of your code. --min Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED]