2
버튼 클릭으로 엑셀 파일 (서버에 저장)을 다운로드하려고합니다. 이벤트는 빈 대신 "WORK.xls"엑셀 파일 클래식 ASP 다운로드
<%
strFile = "WORK.xls"
Response.ContentType = "application/octet-stream"
Response.AddHeader "Content-Disposition", "attachment; filename=" & strFile
set app = Server.CreateObject("ADODB.Stream")
app.open
app.type = adTypeBinary
app.LoadFromFile(Server.MapPath("WORK.xls"))
response.binarywrite app.Read
app.close
Set app = nothing
%>
당신은 문제가 무엇을하는 데 문제가 있습니까? –
"WORK.xls"서버에 저장된 파일 대신 빈 엑셀 파일 다운로드 – Sash