Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

how to save internet pages (pdf)

Question posted by: MHMol (Guest) on January 5th, 2008 09:25 PM
Hi all
Can anyone tell me how to save pdf files on the internet with VB.
The pdf files are numbered sequentially, so let's say the URL is:

"http:\\www.abc.com\page01.pdf"
"http:\\www.abc.com\page02.pdf"
"http:\\www.abc.com\page03.pdf"
etc.

I've been manipulating a sample program (ActXDoc.vbp), so that it produces
these files just by clicking a button. But it is very tiresome to have to
save them all by hand. Is there someway to automize this proces and save
these pdf's directly into a file on the harddisk?

Any help is greatly appreciated.

Thank you.

Margreet Mol



Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
Dean Earley's Avatar
Dean Earley
Guest
n/a Posts
January 7th, 2008
08:25 AM
#2

Re: how to save internet pages (pdf)
MHMol wrote:
Quote:
Originally Posted by
Hi all
Can anyone tell me how to save pdf files on the internet with VB.
The pdf files are numbered sequentially, so let's say the URL is:
>
"http:\\www.abc.com\page01.pdf"
"http:\\www.abc.com\page02.pdf"
"http:\\www.abc.com\page03.pdf"
etc.
>
I've been manipulating a sample program (ActXDoc.vbp), so that it produces
these files just by clicking a button. But it is very tiresome to have to
save them all by hand. Is there someway to automize this proces and save
these pdf's directly into a file on the harddisk?


Use the Inet transfer control (or inet API) to download the URL.
It makes no difference what file type it is.

--
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems

CajunCoiler's Avatar
CajunCoiler
Guest
n/a Posts
January 7th, 2008
08:45 PM
#3

Re: how to save internet pages (pdf)
And lets not forget the automization... put the part number into a FOR-NEXT
loop along
with the FORMAT function to set the URL name...

Dim x As Long
Dim URL As String
For x = 0 To 3
URL = "http:\\www.abc.com\page" + Format(x,"0#) + ".pdf"
'insert download function here -- example: Call Dload(URL)
DoEvents
Next x


"Dean Earley" <dean.earley@icode.co.ukwrote in message
news:4781ee07$0$13926$fa0fcedb@news.zen.co.uk...
Quote:
Originally Posted by
MHMol wrote:
Quote:
Originally Posted by
>Hi all
>Can anyone tell me how to save pdf files on the internet with VB.
>The pdf files are numbered sequentially, so let's say the URL is:
>>
>"http:\\www.abc.com\page01.pdf"
>"http:\\www.abc.com\page02.pdf"
>"http:\\www.abc.com\page03.pdf"
>etc.
>>
>I've been manipulating a sample program (ActXDoc.vbp), so that it
>produces these files just by clicking a button. But it is very tiresome
>to have to save them all by hand. Is there someway to automize this
>proces and save these pdf's directly into a file on the harddisk?

>
Use the Inet transfer control (or inet API) to download the URL.
It makes no difference what file type it is.
>
--
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team
>
iCode Systems




 
Not the answer you were looking for? Post your question . . .
184,012 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors