Re: WebBrowser component in VB

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Claudia Fong" <cdolphin88@xxxxxxxxxxx> wrote in message 
news:%23J8NM02JGHA.2248@xxxxxxxxxxxxxxxxxxxxxxx
>
> Hi,
>
>
> I would like to know if is possible to use VB6 to get information from
> a webpage using the WebBrowser component.
>
>
> I need to retrieve data from a webpage to store in my local database.
> For exemple, I do a search for books and the results will be stored in
> my db.
>
> Can someone help me?
>
>
> Cheers!
>
>    Claudi

You can grab the entire web page, place it in a string and parse out the 
parts you need. Here's some code to read the page. The parsing's up to you 
<g>

Looking at the entire page as a string in a WebBrowser control
http://groups.google.com.my/group/microsoft.public.vb.controls/browse_frm/thread/2a196e8326d58dae

-- 
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Freeware 4 color Gradient Frame? http://www.vbsight.com/GradFrameCTL.htm 


.



Relevant Pages

  • Re: Macro to populate web form
    ... You have to put the URL of the webpage in the macro. ... Function ZipPlusFour(sAdd1 As String, _ ... Dim sResult As String ...
    (microsoft.public.excel.programming)
  • Re: Macro to populate web form
    ... can fill the form and then same the webpage on your local drive as a file. ... Function ZipPlusFour(sAdd1 As String, _ ... Dim sResult As String ...
    (microsoft.public.excel.programming)
  • Re: Macro to populate web form
    ... the DumpPage URL, and ran DumpPage. ... can fill the form and then same the webpage on your local drive as a file. ... Function ZipPlusFour(sAdd1 As String, _ ... Dim sResult As String ...
    (microsoft.public.excel.programming)
  • WebBrowser
    ... How can I determine the width of the string in pixels in the html-document ... After this maximum there is a line-makeup within the cell. ... execute a formfeed / Page break. ... I wonder if the WebBrowser can sends Events, that can be listened to by the ...
    (microsoft.public.vb.general.discussion)
  • Re: How to convert 2 WCHAR to 1 WCHAR
    ... It is a Ukrainian webpage. ... to acheive this once I have the correct string representation. ... As a Unicode character: Neither UCCB3 nor UB3CC are valid characters. ... it has to be stored as a CStringA or other 8-bit ...
    (microsoft.public.vc.mfc)