ActiveX Web Browser

V

vicfurth

I have a product catalog table with url's refering to products images, e.g.
http://servername/filename.jpg
I use a form with the ActiveX Web Browser to view these images with the
browser.navigate method.
Some of the images i want to store locally, i.e. as the browser's Page.Save
as... command.
Is there a way to do this programatically, i.e. a webbrowser.save as command
or assign the the current document to a File object?
Thanks
 
D

Douglas J. Steele

Check out the URLDownloadToFile API.

Randy Birch has an example at
http://vbnet.mvps.org/code/internet/urldownloadtofile.htm although all he's
showing is how to download an entire webpage. If you were to pass
http://servername/filename.jpg it would download just the image.

Obligatory warning: Randy's site is aimed at VB programmers. Because there
are some significant differences between the controls available for forms in
VB and in Access, some of his examples won't port directly to Access.
Looking quickly at this one, though, you should be okay (although there's no
Multiline property to worry about in Access text boxes).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top