Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. code for downloading pdf file in asp 3.0

code for downloading pdf file in asp 3.0

Scheduled Pinned Locked Moved Web Development
helptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ashu_sharma21
    wrote on last edited by
    #1

    hi all, please tell me how to download pdf file in asp 3.0 rite now I am using . --------------------------------------------------------------- Response.AddHeader "Content-Location", strFile Response.AddHeader "Content-Disposition", "attachment;filename=" & strFileName --------------------------------------------------------------- file gets downloaded but on 0 byte only . please help .. this is pretty urgent Ashu

    L 1 Reply Last reply
    0
    • A ashu_sharma21

      hi all, please tell me how to download pdf file in asp 3.0 rite now I am using . --------------------------------------------------------------- Response.AddHeader "Content-Location", strFile Response.AddHeader "Content-Disposition", "attachment;filename=" & strFileName --------------------------------------------------------------- file gets downloaded but on 0 byte only . please help .. this is pretty urgent Ashu

      L Offline
      L Offline
      Luis Alonso Ramos
      wrote on last edited by
      #2

      I did this in ASP.NET a few months ago. I can't check the code because I'm at home, but I believe you have to open the file and after outputting the header, write the full contents of the file. Check this thread on the ASP.NET to see how I did it: Protecting non-ASP.net files[^] -- LuisR


      Luis Alonso Ramos Intelectix - Chihuahua, Mexico Not much here: My CP Blog!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups