Groups | Blog | Home
all groups > inetserver asp general > june 2003 >

inetserver asp general : forced PDF-download in popup


Tom Kaminski [MVP]
6/30/2003 8:54:38 AM
[quoted text, click to view]

You're almost there ... use ADODB.Stream and Response.BinaryWrite.
http://support.microsoft.com/?kbid=276488

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserver2003/community/centers/iis/


dany
6/30/2003 9:54:28 AM
I want a forced PDF-download but all that header-stuff is new for me....

I wrote a little asp-script:
<%
Filename = "download.pdf"
response.addheader "content-disposition","attachment; filename=" & Filename
server.transfer Filename
%>

It only works with Internet Exporer (mac & pc) but not with Opera, Netscape
7,... ?!

I open it in a small popup but now I would have seen closed the popup
automatically
A simple "response.write" with "window.close()"-stuff don't work?!

ciao bye

d.

AddThis Social Bookmark Button