You could setup your server to recognize .xls files a Cold Fusion files, in
just one directory so things don't get too screwy. Then, call you cfm file
MY_FILE.XLS, and simply have that file open and output your XLS file. You
may also want to include an excel type content type header, using cfheader.
I've done this in Perl/UNIX before, where I called a Perl script
whatever.html, and made it executable. That way, it's saved by the user
with the proper extension.
HTH,
Peter Janett
New Media One Web Services
================================
WEB HOSTING FOR WEB DEVELOPERS
================================
-> Sun, IRIX, NT, Linux <-
PHP, MySQL, Perl, Cold Fusion,
MS SQL, ASP, SSI, SSL
http://www.newmediaone.net
[EMAIL PROTECTED]
(303)828-9882
----- Original Message -----
From: Christian Wip <[EMAIL PROTECTED]>
To: Fusebox <[EMAIL PROTECTED]>
Sent: Friday, October 27, 2000 1:11 PM
Subject: CFCONTENT
> I need some help...
>
> I would like to use the CFCONTENT tag (or equivalent tag) to download
> spreadsheets. However, I need to have the actual spreadsheet name rather
> than the cf template name appear as the default "save as" name.
>
> For example, if I call MY_FILE.XLS in a CFCONTENT tag located in
> SOME_CF.CFM, the default "save as" name offered by the browser will be
> SOME_CF.CFM rather than MY_FILE.XLS...
>
> For security reasons I don't want to give the client the straight URL to
the
> actual document.
>
> Any suggestions, custom tags, etc?
>
> Thanks, Christian.
>
>
> --------------------------------------------------------------------------
----
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.