Connecting Tech Pros Worldwide Forums | Help | Site Map

how to save internet pages (pdf)

MHMol
Guest
 
Posts: n/a
#1: Jan 5 '08
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




Dean Earley
Guest
 
Posts: n/a
#2: Jan 7 '08

re: how to save internet pages (pdf)


MHMol wrote:
Quote:
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
Guest
 
Posts: n/a
#3: Jan 7 '08

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:
MHMol wrote:
Quote:
>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

Closed Thread