Reply to Re: Exporting to Excel 2003

Your name:

Reply:


Posted by Oli Filth on 09/17/05 21:31

Michael Vilain said the following on 17/09/2005 19:27:
> In article <1126970803.337223.35680@z14g2000cwz.googlegroups.com>,
> "bobkaku" <bobkaku@yahoo.com> wrote:
>
>
>>I had a PHP script that used to successfully output to Excel 2000. I
>>used the header statements
>> header ('Content-type: application/vnd.ms-excel');
>> header ('Content-disposition: inline; filename=output.htm');
>>
>>Last year I upgraded to Excel 2003, and now the output is just a table
>>that shows up in the browser.
>>
>>Does anybody know what might be problem?
>>
>>Thanks in advance.
>
>
> change the name of the file to output.xls
>

The file-name is irrelevant assuming you are sending the correct MIME-type.

Try "Content-disposition: attachment" instead.



--
Oli

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация