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. General Programming
  3. Visual Basic
  4. Saving PDF on local hard disk which is read by browser control

Saving PDF on local hard disk which is read by browser control

Scheduled Pinned Locked Moved Visual Basic
csharpvisual-studio
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.
  • S Offline
    S Offline
    Sunil Shindekar
    wrote on last edited by
    #1

    Hi, I am writing program VB.Net (using Visual studio 2005). In this program, I am using browser control to send request on the internet. In responce to the request, one PDF file gets opened in the browser automatically. I want to save this PDF file on the hard disk. To do this, I think my program should be able to read the downloaded file in response to my request. Is there any way by which I can do this. Thanks in advance. Regards, Sunil

    L 1 Reply Last reply
    0
    • S Sunil Shindekar

      Hi, I am writing program VB.Net (using Visual studio 2005). In this program, I am using browser control to send request on the internet. In responce to the request, one PDF file gets opened in the browser automatically. I want to save this PDF file on the hard disk. To do this, I think my program should be able to read the downloaded file in response to my request. Is there any way by which I can do this. Thanks in advance. Regards, Sunil

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      If you just want to download the PDF file use HttpWebRequest. Google it and you'll find some example code.

      S 1 Reply Last reply
      0
      • L Lost User

        If you just want to download the PDF file use HttpWebRequest. Google it and you'll find some example code.

        S Offline
        S Offline
        Sunil Shindekar
        wrote on last edited by
        #3

        I am afraid I can not use it. Becuase I don't have to use only the URL. Following is the flow of my program. 1) My application open a web page in WebBrowser control after sending some URL , say www.xx.com (using Navigate method) 2) The opened web page(www.xx.com) has fields like Name, Address, SSN. My application fills this information in the browser window programatically and clicks on one link in the same web page (this is also programatically) 3) on clicking the link, the filled infomration gets submitted and at the server end(of www.xx.com) it processes entered name, address and SSN and generates one PDF file. This PDF file gets opened in my browser(webbrowser) window. 4) This opened PDF, I want to save on the hard disk programatically without having to click manually on the save icon of the embedded acrobat reader. I am unable to achieve step 4.

        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