strUA = Request.ServerVariables("HTTP_USER_AGENT")
filename=NAME_KOR+"이력서.doc"
Response.ContentType = "application/msword"     ----> 중요 (워드로 변환 할떄.)
Response.ContentType = "application/pdf"     ----> 중요 (PDF로 변환 할떄.)


If Instr(strUA, "MSIE") Then
    intVersion = CDbl(mid(strUA, Instr(strUA, "MSIE")+5, 3))
        If intVersion = 5.5 Then
            Response.AddHeader "Content-Disposition","filename=" & FileName
        Else
            Response.AddHeader "Content-Disposition","inline; filename=" & FileName
        End If
End If

  1. pissed fucked 2008.03.13 05:45

    좋은 위치! 너를 감사하십시요.

+ Recent posts