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. ASP.NET
  4. how to view or open PDF file located in some server in the ASP.NET page?

how to view or open PDF file located in some server in the ASP.NET page?

Scheduled Pinned Locked Moved ASP.NET
sysadmincsharpasp-netdatabasehelp
3 Posts 3 Posters 4 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.
  • D Offline
    D Offline
    Dotnetdeveloper06
    wrote on last edited by
    #1

    Hi I m developing intranet application .I wann to know how to view or open the PDF file which is located in some server in the network in ASP.NET page (and whose link has to dynamically produced with the dropdown list selected values) . do i need to use any FSO ? i will get PDf file name from database but actually PDF file is located in server in the network. Hope its not confusing.............. Please help me ........... its very urgent I will be thankful to u

    J 1 Reply Last reply
    0
    • D Dotnetdeveloper06

      Hi I m developing intranet application .I wann to know how to view or open the PDF file which is located in some server in the network in ASP.NET page (and whose link has to dynamically produced with the dropdown list selected values) . do i need to use any FSO ? i will get PDf file name from database but actually PDF file is located in server in the network. Hope its not confusing.............. Please help me ........... its very urgent I will be thankful to u

      J Offline
      J Offline
      Javier Lozano
      wrote on last edited by
      #2

      Here's a quick solution. Have your ASP.NET application read the PDF into a memory stream (or file stream). Then use the Response.OutputStream property to write the files out the browser. However, you need to make sure that you set the Content-Type header for the response to application/pdf. ~Javier Lozano

      A 1 Reply Last reply
      0
      • J Javier Lozano

        Here's a quick solution. Have your ASP.NET application read the PDF into a memory stream (or file stream). Then use the Response.OutputStream property to write the files out the browser. However, you need to make sure that you set the Content-Type header for the response to application/pdf. ~Javier Lozano

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        Thank u

        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