Just a few suggestions

Does It work if you just specify attachment instead of
inline/attachment?

What if you give it a dummy mime type e.g. 
<CFCONTENT TYPE="application/bogus" RESET="yes">

Does it prompt you to open or download it?

Finally out of curiosity is there any reason why you have so many double
quotes around the filename?


HTH

Kola
-----Original Message-----
From: olivier [mailto:[EMAIL PROTECTED]] 
Sent: 11 September 2002 18:06
To: CF-Talk
Subject: CFHEADER/CFCONTENT excel + serverMX + SSL

Hello All,


Here is a an interesting issue ...

We used to have the following 2 lines of code work just great to open a
TABLE-based report in Excel with any IE version and CFserver5:

 <CFHEADER NAME="content-disposition"
VALUE="inline/attachment;filename=""SHIPMENTREPORT.XLS""">
 <CFCONTENT TYPE="application/vnd.ms-excel" RESET="yes">

After migrating to Coldfusion Server MX, this is not working anymore
with
any IE (actually it only works with one IE5.5 in the whole company,
but can't find out where the configuration difference could be).

It comes up with the message "Internet Explorer cannot
download...ex.cfm?action=report&type=ship". It works fine with Netscape
though.

I tried to use another version provided on BF's book, but still have the
exact same issue.
 <CFCONTENT TYPE="application/msexcel">
 <CFHEADER NAME="Content-Disposition" VALUE="filename=sreport.xls">

Now, if I change the URL from https to http, it works fine on IE !!...
Strange hu ? But the https version used to work just fine with the same
cfm
code on CF Server 5, and any version of IE !

After playing around with it, it looks like excel is trying to open the
file
named "https://the.site/file.cfm?action=theaction"; instead of having IE
downloading the
content first, and then handing it over to excel with the filename
specified
in the CFHEADER ...

I tried:
* changing the settings on the Windows File Types, forcing download, or
browse in the same window, etc... didn't help
* looked over the settings of IE 5.5 on the only computer where this
work...
couldn't find anything...
* tried to remove the extension on the "filename=" in the CFHEADER,
didn't
work...
* imported the SSL CA certificate on the workstation, didn't help...

Conclusion so far:
     CFserver5 + HTTP + IE = no problem
     CFserver5 + HTTPS + IE = no problem
     CFserverMX + HTTP + IE = no problem
     CFserverMX + HTTPS + IE = problem
All tests have been done on Win2K & XP workstations.

Anybody have an idea ?


Thanks so much !!!


Olivier.


______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to