Link to home
Start Free TrialLog in
Avatar of igoor
igoor

asked on

reading html into a string from a url

is it possible to write a function that takes a url as a parameter and returns the html contents as a string.

if so, can anyone get me started on how to do this.

do i need use the webbrowser object?

also i want to store this function in a dll.

so using form based controls are out of the question.

any help would be greatly appreciated.
Avatar of Anthony Perkins
Anthony Perkins
Flag of United States of America image

Try and maintain your many open questions and I am sure experts will be more receptive.  FOr the record:

http://devx.experts-exchange.com/jsp/memberProfile.jsp?mbr=igoor&showQHistory=true

Questions Asked 41
Last 10 Grades Given A A A A A A A A C A  
Question Grading Record 26 Answers Graded / 26 Answers Received

Thanks,
Anthony
Add the Internet Transfer Control to your project. Then using the OpenURL method, read in the web contents:

Private Sub Command1_Click()
   Dim sHTML As String
   Dim sURL As String
   sURL = "http://www.excite.com"
   sHTML = Inet1.OpenURL(sURL)
   Debug.Print sHTML
End Sub
Erick, not form based controls .... and please, see Ac comment ;)
Cheers
ASKER CERTIFIED SOLUTION
Avatar of Erick37
Erick37
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
... and again, igoor has no follow up on questions.  When will we learn.

Wileecoy.
Give him some time since EE ups and downs ;)
Richie,

You are an optimist!

Anthony
Not me, but then we would have to go to other place...;)
Avatar of igoor
igoor

ASKER

sorry to take so long. but for some reason i don't recieve all the notification emails.

i am currently trying to finalise all my open questions.
igoor,

You have re-established my faith in humanity.

Thanks,
Anthony