ASP
엑셀
<%
Response.Buffer = TRUE
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-disposition","attachment;filename=저장/오픈할 파일명.xls"
%>

워드
<%
 Response.Buffer = TRUE
 Response.ContentType = "application/msword"
 Response.AddHeader "Content-disposition","attachment;filename=저장/오픈할 파일명.doc"
%>

파워포인트
<%
 Response.Buffer = TRUE
 Response.ContentType = "application/powerpoint"
 Response.AddHeader "Content-disposition","attachment;filename=저장/오픈할 파일명.doc"
%>


html 태그 위에 카피 & 페이스트.

application/pdf
application/vnd.ms-excel
application/vnd.ms-powerpoint
application/word
application/x-mspowerpoint
application/x-msexcel


JSP
<%@ page contentType="application/vnd.ms-excel; name='My_Excel'" %>
<%
response.setHeader("Content-Disposition", "inline; filename=myfile.xls");
response.setHeader("Content-Description", "JSP Generated Data");
%>

PHP
<?
header(\"Content-Type: application/vnd.ms-excel\");
?>

Posted by yol oktour

카테고리

분류 전체보기 (324)
Travel (49)
Game (14)
JaVaScRiPt (2)
ASP (5)
WorldWideWeb (44)
Computer (31)
Design (4)
일상다반사 (120)
인사동 (5)
자전거 (2)
자동차 (5)
어덜트토이 (8)
Utility (13)
USB용프로그램 (6)
1박 2일 (8)

달력

«   2010/09   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30