I'm afraid I'm still getting .htm as the default save as type.

-----Original Message-----
From: Paul Johnston [mailto:[EMAIL PROTECTED]] 
Sent: 07 February 2003 09:50
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] Saving to excel - HTML table to Excel format

And if you really want to be clever... (to test, cut and paste the code,
save it and browse):

<cfheader name="Content-Disposition" value="Filename=testExcel.xls">
<cfcontent type="application/vnd.ms-excel"><table border="1">
<tr>
        <td>Numbers</td>
        <td>Letters</td>
        <td>Chars</td>
</tr>
<tr>
        <td>123</td>
        <td>abcdefg</td>
        <td>/;?:=--_</td>
</tr>
</table>

Works really nicely (and putting in a lot of different HTML attributes
works
well too!)

Paul

-------------------------------------------
Paul Johnston
PJ Net Solutions Ltd
http://www.pjnetsolutions.com
[EMAIL PROTECTED]
+44 (0)7866 573013




-- 
** 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