Hey,
I had the same problem. I realized a simple work-around thou. Im using IIS,
so i have the ability to specify a template as an error page( Say for 404 -
Filenot found) on a per DIR basis. So what i did was create a template with
code simlar to what you have. Then in a page i would link to the file i wanted
(output.xsl) as if it were in the current directory.
ie:
http://blah.com/index.html
it has a link to output.xls (thus looking like http://blah.com/output.xls
)
But, output.xsl doesnt exist there ... it exists some place else (ie non
accessable via the web). So i causes a 404 Error, and i told IIS to use a
speical template, so as to when the 404 happends, it will fetch the file and
CFCONTENT to the client as the content of the error page. But the client has no
idea they caused a 404 ... And the file name (when they goto save) will be
output.xls.
the only downside might be an abundence of 404s in your server logs...
David Scheiderich
> When using cfcontent as in:
> <cfcontent type="application/msexcel" file="d:\templates\OUTPUT.XLS"
> deletefile="YES">
> the file comes back with a .cfm extension but in XLS format. What do I need
> to do to correct this?
>
>
> Jim Watkins
>
> ------------------------------------------------------------------------------
> 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.