recibo cualquier aporte
tengo el siguiente código:
Código PHP:
<?php
header("Content-Type: application/vnd.ms-excel");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
?>
Código HTML:
<html> <head> <title>Excel Spreadsheet</title> </head> <body> <table width="304" border="1" cellspacing="0" cellpadding="2" align="center"> <!--DWLayoutTable--> <tr> <td width="151" height="22"> </td> <td width="139"> </td> <tr align="center" bgcolor="#FFFF00"> <td height="22" valign="top"><!--DWLayoutEmptyCell--> </td> <td valign="top"><!--DWLayoutEmptyCell--> </td> </tr> <tr> <td height="40" align="right" valign="top"><!--DWLayoutEmptyCell--> </td> <td align="left" valign="top" bgcolor="#FF9900"><!--DWLayoutEmptyCell--> </td> </tr> <tr> <td height="40" align="right" valign="top"><!--DWLayoutEmptyCell--> </td> <td align="left" valign="top" bgcolor="#FF9900"><!--DWLayoutEmptyCell--> </td> </tr> <tr> <td height="30" align="right" valign="top"> Total: </td> <td align="left" valign="top" bgcolor="#FF0000"> <font color="#FFFF00" size="5" face="Arial, Helvetica, sans-serif"><strong>=SUM(B2:B3)</strong></font> </td> </tr> <tr> <td height="24"></td> <td></td> </tr> </table> </body> </html>