Thread View: borland.public.cppbuilder.internet.web
3 messages
3 total messages
Started by Jesper
Sat, 07 Jan 2006 17:27
CppWebBrowser
Author: Jesper
Date: Sat, 07 Jan 2006 17:27
Date: Sat, 07 Jan 2006 17:27
5 lines
1168 bytes
1168 bytes
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
Re: CppWebBrowser
Author: 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);
Re: CppWebBrowser
Author: Remy Lebeau (TeamB)
Date: Mon, 09 Jan 2006 10:48
Date: Mon, 09 Jan 2006 10:48
14 lines
1377 bytes
1377 bytes
"caleb" <nos@pam.com> wrote in message news:43c09158$1@newsgroups.borland.com... > IPersistFile *PersistFile; <snip> You don't need a temporary file at all. You can save the HTML to a TStream via the IPersistStreamInit interface and the VCL's TStreamAdapter class. Then you can use the TMemo's LoadFromStream() method instead of LoadFromFile(). Gambit
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads