forced PDF-download in popup

Ask a Question related to ASP, Design and Development.

  1. #1

    Default 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.


    dany Guest

  2. Similar Questions and Discussions

    1. File Download PopUp
      I received an upgrade to my Windows XP operating system today and now get a "File Download" popup window everytime I access a file over the...
    2. Popup Download Window
      Hi all, I have <b>Link</b> tag that contains the URL for a specific file in the server. I want that once the user click on that link a popup...
    3. "forced" download from ASP
      Hi All, First of all I'm mostly an MS Access guy (and novice learning MSSQL guy) and put on this project because of personnel changes, etc and...
    4. forced file download
      Wrote a script (tried to;) which should force to download a pdf-file, but it doesn't work on every browser. What should be changed ? SCRIPT:...
  3. #2

    Default Re: forced PDF-download in popup

    "dany" <danyjpr_antispam_@yucom.be> wrote in message
    news:oNTLa.5839$P26.5778@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.
    [url]http://support.microsoft.com/?kbid=276488[/url]

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



    Tom Kaminski [MVP] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139