문서의 상단에 ContentType(문서유형) 과 AddHeader(문서제목) 를 명시해준다.
ex)
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition", "attachment;filename=문서명.xls"
이후 테이블형태로 내용을 작성하면 시트형태로 파일이 완성된다.
'Development > ASP' 카테고리의 다른 글
ASP 자주 쓰는 함수 Mid,Replace,Trim,Len,Left,Right,Lcase,Ucase,FormatNumber,UBound (0) | 2017.04.17 |
---|---|
ASP ajax와 json 같이 사용하기 (0) | 2017.04.07 |
ASP DB에서 불러와 json 형태로 쓰기 (0) | 2017.04.07 |
ASP json 객체 사용하기 전 선언 (0) | 2017.04.07 |
ASP asp페이지를 엑셀형태로 불러오기 (0) | 2017.04.07 |