Alexander Foken: Export to Excel

Beitrag lesen

Moin Moin !

  1. application/vnd.ms-excel als Content-Type setzen

Der Content-Type ist für das Excel-Binärformat reserviert!
http://www.iana.org/assignments/media-types/

2a) Normale HTML-Tabelle ausgeben

da wäre dann text/html fällig

oder
2b) CSV ausgeben. Das ist eine normale Textdatei mit dem Aufbau:
"Inhalt von A1";"Inhalt von B1";"Inhalt von C1";
"Inhalt von A2";"Inhalt von B2";"Inhalt von C2";
"Inhalt von A3";"Inhalt von B3";"Inhalt von C3";

und da text/plain oder text/csv

Christian sucht wahrscheinlich einen Weg, das binäre Excel-Format zu schreiben (da wäre dann auch application/vnd.ms-excel angebracht). Und das geht so:

http://freshmeat.net/projects/spreadsheet_writeexcel/
http://phpclasses.psbweb.com/browse.html/package/767.html

Alexander

--
Nein, ich beantworte keine Fragen per eMail. Dafür ist das Forum da.
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so!"
Mein "Lieblings-Forums-Bug": http://cforum.teamone.de/phpbt/bug.php?op=show&bugid=103&pos=2