Hi,
I've been searching for awhile but i can't find an answer. How do you emulate the save image as in IE in a webbrowser control? I already have the element("src") but i can't figure out how to download it WITH a dialog box.
Thanks,
Arjun
Printable View
Hi,
I've been searching for awhile but i can't find an answer. How do you emulate the save image as in IE in a webbrowser control? I already have the element("src") but i can't figure out how to download it WITH a dialog box.
Thanks,
Arjun
Friends time (yahoo, google, ask, answers, bing) vb6 URLDownloadToFile API...
Okay, you have the source http...jpg/bmp/tga/png/etc then all you need is the common dialog control with the showsave method to collect the destination file name. Once you have that, execute the API...
Good Luck
Hi, I've toyed around with the api and seem to have gotten it to work, but what I don't understand is how to get the directory path **with** the correct extension. Could you please post some sample code? I would appreciate it if you could.
What are you having problems with? The local machine path? use app.path in vb6
Code:msgbox "app.path & \folder"
Okay, you have the URL to the image right? So, you put that into a string variable...
MyString = ...
Then you will need a couple of dynamic arrays declared. One for the CD.FileName and one for the CD.Filter. (Dim E() As String, N() As String)
Split on the "/" for retrieving the filename, and split on the "." for the extension (use the UBound Function...)...
Give it a try and if you have problems, post your code.
Good Luck