What we do here is a cfhttp call to the template that creates the HTML for
the report passing through the file attribute. Then cfcontent the file that
was created in the cfhttp. That way you don't lose anything.
Let me know if you need anymore help with this.
--K
-----Original Message-----
From: Warrick, Mark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 17, 2000 9:20 AM
To: CF-Talk
Subject: CFContent Weirdness
I have a report which works fine as HTML output.
As soon as I add in the following CFCONTENT tag, the report somehow looses
all the variables from the form previous to it which passes information into
it.
Here's the tag I'm using:
<cfcontent type="application/msword">
Now, If I change the tag to:
<cfcontent type="application/rtf">
It works fine and I can download the generated report, name it as a doc
file, and then open it up in Word.
What's the problem here? First of all, I'd really like my browser to launch
Word (we're all using MSIE 5.0) and secondly, if I'm forced to download the
file instead, I'd like to pass a doc name through to the download prompt of
the browser. (It currently names it as the name of the CFML template by
default.)
I've tried this trick:
http://servername/cfdocs/index.cfm/xyz.doc?fuseaction=showWordDoc
But it doesn't work on my server. Gives me a 405 error.
What am I doing wrong?
---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
--------------------------------------------------------------
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.