<%
Filename = "test.doc"
'Filename= "test.xls"
Response. contenttype = "application/MSWord"
'Response. contenttype = "application/MSExcel"
Response. addheader "content-disposition", "inline; filename =" & filename
%>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"/>
<Title> ASP + wrod, Excel PrintingProgramExample </title>
</Head>
<Body>
<Table width = "600" border = "0" align = "center" cellpadding = "5" cellspacing = "0">
<Tr>
<TD bgcolor = "# cccccc"> Student ID </TD>
<TD bgcolor = "# cccccc"> name </TD>
<TD bgcolor = "# cccccc"> name </TD>
<TD bgcolor = "# cccccc"> Date of Birth </TD>
</Tr>
<Tr>
<TD> 111 </TD>
<TD> AAA </TD>
<TD> true </TD>
<TD> 1983-10-10 </TD>
</Tr>
<Tr>
<TD> 222 </TD>
<TD> AAA </TD>
<TD> false </TD>
<TD> 1983-10-10 </TD>
</Tr>
<Tr>
<TD> 333 </TD>
<TD> AAA </TD>
<TD> false </TD>
<TD> 1983-10-10 </TD>
</Tr>
<Tr>
<TD> 444 </TD>
<TD> AAA </TD>
<TD> true </TD>
<TD> 1983-10-10 </TD>
</Tr>
</Table>
</Body>
</Html>