469,943 Members | 2,534 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,943 developers. It's quick & easy.

Subject: How do I save a .PDF file from a website???

Hello All,

Its a bit more complicated than the subject line implies.

A website that I use for information allows me to click on a link and their .PDF displays in IE's browser window.. Since this data has a life-span
of about a week (replaced by a newer updated one on a daily basis) and if I happen to miss a day viewing and recording the info I want, its gone

To solve this problem, I wrote a small app to retrieve their index page of the info into a vb.net webbrowser control. This works fine for viewing,
but now I want to save the retrieved file as a .PDF on my local system. (It does bring up the Adobe toolbars and commands in the browser window and I
can save from there.) I want this to be "automatic" so I can set my app to run through the task scheduler and I won't have to be present to download.

The .PDF files are not accessible directly from a directory. Each of the links from the index page is directed to a Javascript (I believe) routine
with some parameters. And apparently from that script, the proper location of the file is determined and subsequently returned to my browser control
as a PDF file.

A sample of my code is below. (After the Navigate command, how do I save the contents of wbPage as a PDF?) Can I essentially do a Navigate directly
onto a local drive?


Jul 9 '06 #1
0 1008

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by David Thielen | last post: by
2 posts views Thread by dkoneeee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.