'엑셀'에 해당되는 글 1건

  1. 2009/01/20 웹페이지 워드,엑셀,파워포인트로 변환

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 트랙백 0 : 댓글 0