Re: Excel export problem in IE



If I change the application/vns.ms-excel to octet-stream it outputs the
result on the page itself. Not sure what is missing for saving it as
excel file. ?


robert wrote:
| <?php
| header("Content-type: application/vnd.ms-excel; name='excel'");
| header("Content-Disposition: filename=export.xls");
| header("Pragma: no-cache");
| header("Expires: 0");

try:

content-type: application/octet-stream
content-disposition: attachment; filename=export.xls
content-transfer-encoding: binary

hth,

me

.



Relevant Pages

  • Re: Excel export problem in IE
    ... | If I change the application/vns.ms-excel to octet-stream it outputs the ... Not sure what is missing for saving it as ... headers you specify. ...
    (alt.php)
  • Excel Crash when save one file
    ... While trying to save an Excel file that I have been working on today, ... sense that there is difficulty in saving the file to my C drive. ... I tried copying the file on a "keyring", ... I wonder if the problem stems from a corrupt area on my disk, ...
    (microsoft.public.excel.misc)
  • Re: Cant save CSV files on our network
    ... > When ever I attempt to save an Excel file in CSV format I ... > have on problem provided I am saving to my hard disk. ... > I attempt to save to our network I recieve and error that ... Just not Excel worksheets in CSv format. ...
    (microsoft.public.excel.newusers)
  • Re: OT - help finding a file
    ... Don't have any ideas offhand but where in the directory structure was ... It's an Excel file, it was in MyDocuments, I access it daily, including ... I can rebuild most of it from a backup copy, ... missing some current data. ...
    (rec.music.makers.guitar.jazz)
  • Re: Background missing when I save as web page
    ... Microsoft PPT MVP ... > They are really missing. ... I've tried templates with an embedded graphic as the ... >>> anyone know how to make the background appear when saving as web page? ...
    (microsoft.public.powerpoint)