Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > forced PDF-download in popup

Reply
Thread Tools

forced PDF-download in popup

 
 
dany
Guest
Posts: n/a
 
      06-30-2003
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.


 
Reply With Quote
 
 
 
 
Tom Kaminski [MVP]
Guest
Posts: n/a
 
      06-30-2003
"dany" <(E-Mail Removed)> wrote in message
newsNTLa.5839$(E-Mail Removed)-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/



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Watir Javascript popup handler: How to handle the popup dialog? Rajesh Ruby 0 07-31-2007 04:36 AM
ASP.NET JavaScript Popup, No Popup Using Back Button dapkniht ASP .Net 1 03-08-2006 08:49 AM
Popup Window Popup Timing =?Utf-8?B?Sm9obiBXYWxrZXI=?= ASP .Net 3 11-04-2005 07:33 PM
Main > Popup > Popup > Close popup AND new URL in main? Jens Peter Hansen Javascript 7 06-19-2004 08:56 PM
Forced video AND forced audio from Universal Invalid Address DVD Video 32 01-18-2004 05:29 PM



Advertisments