Connecting Tech Pros Worldwide Help | Site Map

how to save internet pages (pdf)

  #1  
Old January 5th, 2008, 10:25 PM
MHMol
Guest
 
Posts: n/a
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



  #2  
Old January 7th, 2008, 09:25 AM
Dean Earley
Guest
 
Posts: n/a

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
  #3  
Old January 7th, 2008, 09:45 PM
CajunCoiler
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling save as... hp_1981@yahoo.com answers 5 August 1st, 2006 03:05 AM
Save a pdf file when opened in a browser object And answers 0 May 11th, 2006 05:05 AM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit answers 5 November 14th, 2005 12:36 PM
How to save(convert) a web page with images in a XML, or RTF/DOC file ? silexian answers 0 July 17th, 2005 06:12 AM