Article View: borland.public.cppbuilder.internet.web
Article #840Re: TCppWebBrowser load MHT doc from stream
From: caleb
Date: Fri, 30 Dec 2005 06:48
Date: Fri, 30 Dec 2005 06:48
24 lines
1507 bytes
1507 bytes
"lsllsf" <lsllsf@tom.com> wrote: >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; > > Is memo1->wordwrap set to true?
Technical Details
Message-ID:
<43b4e640$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43ae263a@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,2d58154f2e9d32f3 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "caleb" <nospam@nospam.com> Sender: "caleb" <nospam@nospam.com> Reply-To: "caleb" <nospam@nospam.com> Subject: Re: TCppWebBrowser load MHT doc from stream Newsgroups: borland.public.cppbuilder.internet.web X-User-Info: 71.99.37.67 References: <43ae263a@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <43b4e640$1@newsgroups.borland.com> Date: 29 Dec 2005 23:48:16 -0700 X-Trace: newsgroups.borland.com 1135928896 207.105.83.66 (29 Dec 2005 23:48:16 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail