Article View: borland.public.cppbuilder.internet.web
Article #1085TCppWebBrowser load MHT doc from stream
From: murone
Date: Thu, 21 Apr 2005 20:09
Date: Thu, 21 Apr 2005 20:09
18 lines
1521 bytes
1521 bytes
I can successfully load an html doc from a stream to TCppWebBrowser using
the code below, but when trying to load an .mht file, the formatting is all
screwed up. Anyone have any idea how to do this correctly? Thanks
ba
TMemoryStream *stm = new TMemoryStream();
Memo1->Lines->SaveToStream(stm);
IPersistStreamInit *psi;
stm->Seek(0,0);
TStreamAdapter *sa = new TStreamAdapter(stm,soReference);
if(SUCCEEDED(CppWebBrowser1->Document->QueryInterface(IID_IPersistStreamInit,(void
**)&psi)))
psi->Load(*sa);
delete stm;
Technical Details
Message-ID:
<4268088f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: feeec,3b354e2c3ac24525,start X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "murone" <banterbubba@yahoo.com> From: "murone" <banterbubba@yahoo.com> Newsgroups: borland.public.cppbuilder.internet.web Subject: TCppWebBrowser load MHT doc from stream Date: Thu, 21 Apr 2005 16:09:46 -0400 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 67.165.45.154 Message-ID: <4268088f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1114114191 67.165.45.154 (21 Apr 2005 13:09:51 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail