Hi Giles

add the CFHeader
<CFHEADER name="Content-Disposition" value="Filename=foo.xls">

<CFCONTENT type="application/vnd.ms-excel">

that works for me

 Matt

At 09:33 07/02/2003 +0000, you wrote:
I have just tested this on the live server and I don't get the error but
it still doesn't default to being saved as .xls!

Any ideas?

-----Original Message-----
From: Giles Roadnight [mailto:[EMAIL PROTECTED]]
Sent: 07 February 2003 09:29
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] Saving to excel


I am using <cfcontent type="application/vnd.ms-excel" RESET="Yes"> to
download a table to excel. The thing is that when you to save this excel
spreadsheet it has .htm as default in the save as box.

How do I get it to save as .xls as default. I have tried /filename.xls
at the end of the URL but I get this error:

405 Method Not Allowed

The method specified in the Request Line is not allowed for the resource
identified by the request. Please ensure that you have the proper MIME
type set up for the resource you are requesting.

Please contact the server's administrator if this problem persists

How do I fix this? I am told that I need to change something on the
server.

Thanks

Giles


--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]



--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to