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
  1. Home
  2. Web Development
  3. ASP.NET
  4. Another PDF question

Another PDF question

Scheduled Pinned Locked Moved ASP.NET
helpcsharpadobetutorialquestion
3 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.
  • F Offline
    F Offline
    ffowler
    wrote on last edited by
    #1

    First off, I am sorry to post this question. I promise I did search for exactly what I needed concerning my particular interest but I can only find issues and comments that are beyond what I need. My simple problem is that I have a windows app written in C# that will display a PDF file, in Adobe, using Process (opening the app externally). I pass the file name in the Process.StartInfo.Argument value. Everything works well, but now I am asked to do this in a web page. :doh: I have searched for just a simple way to display a pdf file in a web page (aspx) and cannot find a tutorial, comment or any thing. Everywhere I have search usually had to do with converting or something else that is more than what I need.I don't have to do any conversions or special rendering, I just have to pass the .pdf file name somewhere so that the page can display it. Any help would be greatly appreciated.

    C 1 Reply Last reply
    0
    • F ffowler

      First off, I am sorry to post this question. I promise I did search for exactly what I needed concerning my particular interest but I can only find issues and comments that are beyond what I need. My simple problem is that I have a windows app written in C# that will display a PDF file, in Adobe, using Process (opening the app externally). I pass the file name in the Process.StartInfo.Argument value. Everything works well, but now I am asked to do this in a web page. :doh: I have searched for just a simple way to display a pdf file in a web page (aspx) and cannot find a tutorial, comment or any thing. Everywhere I have search usually had to do with converting or something else that is more than what I need.I don't have to do any conversions or special rendering, I just have to pass the .pdf file name somewhere so that the page can display it. Any help would be greatly appreciated.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Basically, you need your user to have Acrobat, just like your windows app. You can just link to a PDF and the browser should open it, or you can set the content type and use response.binarywrite to pass a pdf down in response to a page event.

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      F 1 Reply Last reply
      0
      • C Christian Graus

        Basically, you need your user to have Acrobat, just like your windows app. You can just link to a PDF and the browser should open it, or you can set the content type and use response.binarywrite to pass a pdf down in response to a page event.

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        F Offline
        F Offline
        ffowler
        wrote on last edited by
        #3

        As always thank you for your help. It works great both ways. Take care Mr. Graus.

        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