How can I download a pdf file using .net?

burak

Centurion
Joined
Jun 17, 2003
Messages
127
Hello,

How can I download a pdf file on a web server to my
pc by using vb.net?

Thank you,

Burak
 
I am talking about writing vb.net code that will have a textbox where you can enter the url of a pdf and then it will download this pdf to your hard drive when you run it.

I am not talking abut clicking on links.
 
I found out how it's done.

-------------------------------

Dim src, dest As String

src = "www.bryantstratton.edu/pdf/course_descriptions.pdf"
dest = "C:\Documents....\bryant.pdf"

Dim webc As New WebClient
webc.DownloadFile(src, dest)
 
Back
Top