상세 컨텐츠

본문 제목

[ASP] 엑셀 파일로 저장하기

인터넷/프로그래밍/홈페이지

by 길상여의 2008. 8. 22. 13:52

본문


ASP에서 테이블 내용을 엑셀로 저장하는 방법입니다.

<%
  Response.Buffer = True
  Response.ContentType = "appllication/vnd.ms-excel" // 엑셀로 지정
  Response.CacheControl = "public"
  // 파일 다운로드 창에서 열기,저장을 선택했을때 부터 데이터를 전송합니다. 
  Response.AddHeader "Content-Disposition","attachment; filename=파일명.xls"
%>

관련글 더보기