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.
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.
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
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
Cheers
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
... and again, igoor has no follow up on questions. When will we learn.
Wileecoy.
Wileecoy.
Give him some time since EE ups and downs ;)
Richie,
You are an optimist!
Anthony
You are an optimist!
Anthony
Not me, but then we would have to go to other place...;)
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.
i am currently trying to finalise all my open questions.
igoor,
You have re-established my faith in humanity.
Thanks,
Anthony
You have re-established my faith in humanity.
Thanks,
Anthony
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