Give this a try:
o.Document.DocumentElement.OuterHtml
This will get the whole document including the HTML headers. The body is read-write, but the Document is read only.
If you're working with the object model be sure to check here for detailed info on using the WB control with VFP:
http://www.west-wind.com/presentations/shellapi/shellapi.asp+++ Rick ---
>I'm using the webbrowser4 control and I would like to retrieve the html code of the displayed page. There seem to be some methods available to retrieve the pages html code, but I can't get them working ...
>
>Anyone, any ideas ?