I have used the following code to display my spreadsheet (generated with
POI) (or at least open it up in excel...if there is a better way so that
that it just opens in a browser...that would b awesome):

<cfheader name="content-length" value="#ArrayLen(ExcelByteData)#"/>
<cfheader name="content-disposition" value="attachment; filename=#xls_file#"
/>
<cfcontent type="application/vnd.ms-excel" variable="#ExcelByteData#" />
                                                                
This works great on 8, but not on 6...I get the following error

Attribute validation error for tag CFCONTENT.
The tag does not allow the attribute(s) VARIABLE. The valid attribute(s) are
DELETEFILE,FILE,RESET,TYPE.

Obviously this is because 6 doesn't have this attribute.

Any better ideas on how to display this?  Ideally, if someone knows how to
cause it to just display in the browser (rather than a prompt to open it in
excel), that would be the best solution.
Thanks in advance!

Eric


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302279
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to