Posted by mukherjeesubrato on 05/31/06 16:21
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
Navigation:
[Reply to this message]
|