Hey, Would you like to work at Home ?? Just click here No need to pay, just register free and activate your account and get data Entry Work at your Home.

Wednesday, August 15, 2007

Code To Generate Excel Documents - Part 1

<?php
header("Content-Type: application/vnd.ms-excel");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
?>

<html>
<head>
<title>Excel Spreadsheet</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="200" border="1" cellspacing="0" cellpadding="2">
<tr align="center" bgcolor="#FFFF00">
<td colspan="2">
<font face="Arial, Helvetica, sans-serif"><strong>Article
</strong> </font>
</td>
</tr>
<tr>
<td width="155" align="right">
<font size="6" face="Times New Roman, Times, serif"><em>Apples:</em></font>
</td>
<td width="31" align="left" bgcolor="#FF9900">
<strong><font color="#FFFFFF">5</font></strong>
</td>
</tr>
<tr>
<td align="right">
<font size="6" face="Times New Roman, Times, serif"><em>Oranges:</em></font>
</td>
<td align="left" bgcolor="#FF9900">
<strong><font color="#FFFFFF">5
</font> </strong>
</td>
</tr>
<tr>
<td align="right">
Total:
</td>
<td align="left" bgcolor="#FF0000">
<font color="#FFFF00" size="5" face="Arial, Helvetica, sans-serif"><strong>=SUM(B2:B3)</strong></font>
</td>
</tr>
</table>
</body>
</html>

No comments:

Your Ad Here