467,212 Members | 1,203 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,212 developers. It's quick & easy.

forced PDF-download in popup

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.
Jul 19 '05 #1
  • viewed: 3802
Share:
1 Reply
"dany" <da***************@yucom.be> wrote in message
news:oN*****************@afrodite.telenet-ops.be...
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?!


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/windowsserv...y/centers/iis/

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by aggelos | last post: by
reply views Thread by Chive Software | last post: by
9 posts views Thread by Paul Kuebler | last post: by
5 posts views Thread by fbwhite@online.nospam | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.