<%
Response.ContentType = "application/msword"
Response.AddHeader "Content-Disposition", "attachment;filename=receipt.doc"
Dim strName, strAddress
strName = Request.Form("Name")
strAddress = Request.Form("Address")
%>
<html>
<head>
<title>Word Test</title>
<style type="text/css">
.BigTitle {
font-family: Verdana, Sans-Serif;
font-size: 20pt;
font-weight: bold;
color: #004080;
}
.UserDetails {
font-family: Courier New, Monospace;
font-size: 12pt;
}
</style>
</head>
<body>
<p>
Word Output.
</p>
<p>
</p>
<p>
Thank you for purchasing, your order will be shipped within 2 business
days. Below are the shipping details, provided by you.
</p>
<p>
<div align="left">
<table border="0" width="691" height="123" cellspacing="0" cellpadding="0">
<tr>
<td width="390" height="123" rowspan="3"></td>
<td width="90" height="33"><b>Name:</b></td>
<td width="201" height="33"><span class="UserDetails"><%=strName%></span></td>
</tr>
<tr>
<td width="90" height="28"><b>Address:</b></td>
<td width="201" height="28"><span class="UserDetails"><%=strAddress%></span></td>
</tr>
<tr>
<td width="90" height="62"></td>
<td width="201" height="62"></td>
</tr>
</table>
</div>
</body>
</html>
===================
<a href="edu_sinchung_view.asp?ContentType=application/msword" border=0><img src="MakeWord.jpg" border=0></a>
<a href="edu_sinchung_view.asp?ContentType=application/vnd.ms-powerpoint" border=0><img src="MakePowerPoint.jpg" border=0></a>
Response.ContentType = "application/vnd.ms-excel; name='My_Excel'"
Response.AddHeader "Content-Disposition","attachment;filename=subject_sin_excel.xls"
'기타' 카테고리의 다른 글
SONY PCG-GRZ20L 그래픽 드라이버 (0) | 2013.03.26 |
---|---|
[모니터수리] SyncMaster 199B LCD모니터 수리 - 2,700원 (0) | 2012.11.10 |
[c/c ] 포인트 자꾸만 잊어 버리는것.(1번) (0) | 2011.05.26 |
[펌] AMD AHCI 드라이버를 설치 30% 향상 (0) | 2011.03.26 |
SYSTEM 구성도 개념 - 예제 (0) | 2010.09.07 |