hola
Tengo este codigo en PHP para crear un documento powerpoint usando HTML. Se supone que es igual para crear un archivo Excel sin empargo con excel, poniendo la extension .xls funciona pero con powerpoint no.
$filepnt = fopen("newfilehtml.ppt", 'w+');
//This is an example of a table about some users of an example website
//Of course, if you are getting the data from MySQL (or somewhere else) the code should be formatted better
$content = "hglgl <table><tr><td><b>Id</b></td><td>
<b>Username</b></td></tr> <tr><td>1</td><td>Webmaster</td></tr> <tr><td>2</td>
<td>mysql_fan</td></tr> <tr><td>3</td>
<td>slackware</td></tr></table>";
fwrite($filepnt, $content);
fclose($filepnt);
Gracias