Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Borland Delphi > Getting TWebbro...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 3662 of 3830
Post > Topic >>

Getting TWebbrowser contents HTML into a string

by HanslH <nospam@[EMAIL PROTECTED] > Mar 27, 2008 at 03:24 PM

How do I get  TWebbrowser contents HTML into a string.

I found about 10 examples of code that should do that and they all
compile well but give an acess violation if I try to access the body
property of the TWebbrowser document property at runtime.
I use delphi turbo 2006, windows vista business, IE7

example of failing code:

procedure TForm1.BitBtn1Click(Sender: TObject);
var
  Html : string;
  HtmlDocument: OleVariant;
begin

webbrowser1.navigate('http://www.flickr.com/recent_activity.gne?days=');

   HtmlDocument:= WebBrowser1.OleObject.Document;
   memo1.lines.add(Htmldocument.body); // AV here

   webbrowser1.navigate('http://flickr.com/?clear=1');


end;
 




 2 Posts in Topic:
Getting TWebbrowser contents HTML into a string
HanslH <nospam@[EMAIL   2008-03-27 15:24:09 
Re: Getting TWebbrowser contents HTML into a string
HanslH <nospam@[EMAIL   2008-03-27 17:08:17 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 10:38:03 CDT 2008.