Article View: borland.public.cppbuilder.internet.web
Article #850Re: CppWebBrowser
From: caleb
Date: Sun, 08 Jan 2006 03:13
Date: Sun, 08 Jan 2006 03:13
28 lines
1549 bytes
1549 bytes
"Jesper" <jesper@safholm.com> wrote:
>I need some help on how to view the HTML code from a page i've loaded into
>the CppWebBrowser1-box.
>If you can write how I can but it in a Memo-box I would be happy :)
>
>/J
>
>
AnsiString filename;
IHTMLDocument2 *HTMLDocument;
IPersistFile *PersistFile;
try
{
CppWebBrowser1->Document->QueryInterface(IID_IHTMLDocument2,
&((void*)HTMLDocument) );
HTMLDocument->QueryInterface(IID_IPersistFile, &((void *)PersistFile));
PersistFile->Save(WideString(String(filename)), true);
PersistFile->Release();
HTMLDocument->Release();
}
catch(...)
{
}
if(FIleExists(filename))
MemoBox->LoadFromFile(filename);
Technical Details
Message-ID:
<43c09158$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!195.140.150.52.MISMATCH!ndsoftware.com!grolier!194.74.65.66.MISMATCH!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43bff96b@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,a8b63bea37e980de X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "caleb" <nos@pam.com> Sender: "caleb" <nos@pam.com> Reply-To: "caleb" <nos@pam.com> Subject: Re: CppWebBrowser Newsgroups: borland.public.cppbuilder.internet.web X-User-Info: 71.99.37.67 References: <43bff96b@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <43c09158$1@newsgroups.borland.com> Date: 7 Jan 2006 20:13:12 -0700 X-Trace: newsgroups.borland.com 1136693592 207.105.83.66 (7 Jan 2006 20:13:12 -0700) Lines: 28 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!195.140.150.52.MISMATCH!ndsoftware.com!grolier!194.74.65.66.MISMATCH!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail