I assume you're writing the html/xls file to disk here?

How about generating the html as a normal request, then placing this at the top:
<cfcontent type="application/msexcel">
<CFHEADER NAME="Content-Disposition" VALUE="filename=report.xls">

You can then link to this URL directly and it will download as an excel spreadsheet.

Ian

>I'm using a combination of Flash and Coldfusion web services to generate
>an Excel Spreadhseet (technically, the web service saves an html file on
>the server with a .xls extension), and returns the URL to Flash.  Flash
>then uses getURL to open the .xls file in a new browser window.
>
>This worked great but now with Windows XP Service Pack 2, the new window
>pops up and then is filled with an "Action Canceled" message.  If you
>click "Refresh" in the toolbar of that window, it opens the spreadsheet
>just fine.
>
>Has anyone experience a similar problem and solved it?
>
>--
>Another annoyance with Service Pack 2 is the popup blocker, which also
>blocks the new window.. it's not technically a popup... it's just a new
>browser window.. like <a target=_blank ...></a>
>
>But even after allowing popups from the domain, you still get the
>"Action canceled" message..
>
>  - rick
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to