Posted by >>Shailesh on 09/26/05 14:53
hi,
i simply wants to convert html string to csv/xls file..i hv tried
$stuff = '<html><head><title>stuff</title></head><body><b>Hello</b>
World</body></html>';
header("Content-Type: application/vnd.ms-excel");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("content-disposition: attachment;filename=str.xls");
print $stuff;
this would ask to save as xls file...but while opening that xls file
it's giving error..
because it's saving html coded file with only xls extension.
would anyone plz help me to save HTML string in xls/cvs format..
Regards,
Shailesh P
[Back to original message]
|