문서의 상단에 ContentType(문서유형) 과 AddHeader(문서제목) 를 명시해준다.


ex)

Response.ContentType = "application/vnd.ms-excel"

Response.AddHeader "Content-Disposition", "attachment;filename=문서명.xls"


이후 테이블형태로 내용을 작성하면 시트형태로 파일이 완성된다.

Posted by kunoo
,