Ultrawhack
Well-known member
Hi,
I trap the innerhtml from a webbrowser. How can I remove the vbcrlfs from the innerhtml ? I cannot use replace as hdoc is not a string.
Thanks !
I trap the innerhtml from a webbrowser. How can I remove the vbcrlfs from the innerhtml ? I cannot use replace as hdoc is not a string.
Thanks !
VB.NET:
[SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] hDoc [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] HtmlDocument
[/SIZE][SIZE=2]hDoc = WebBrowser1.Document.Window.Frames([/SIZE][SIZE=2][COLOR=#800000]"contentframe"[/COLOR][/SIZE][SIZE=2]).Document[/SIZE]
[SIZE=2][SIZE=2]FileOpen(1, [/SIZE][SIZE=2][COLOR=#800000]"c:\testfile.htm"[/COLOR][/SIZE][SIZE=2], OpenMode.Binary)
FilePut(1, hDoc.Body.InnerHTML)
FileClose(1)
[/SIZE][/SIZE]