9. 프로젝트/└ 02. 홈페이지제작
웹에서 엑셀로 저장시에 atl+엔터 효과
훈킹
2008. 8. 12. 01:45
반응형
<html>
<%
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition", "attachment;filename="& filename
%>//ASP에서 엑셀로 변환하는 코드
<?
header(\"Content-type: application/vnd.ms-excel\");
header(\"Content-Disposition: attachment; filename=$filename\");
header(\"Expires: 0\");
header(\"Cache-Control: must-revalidate, post-check=0,pre-check=0\");
header(\"Pragma: public\");
?>//php에서 엑셀로 변환하는 코드
<head>
<style>
br{mso-data-placement:same-cell;} //BR을 ALT+ENTER효과로 대체
</style>
</head>
<body>
<table border=0 cellpadding=0 cellspacing=0 width=96>
<tr>
<td height=36>a<br>a</td>
</tr>
</table>
</body>
</html>
반응형