🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #868

HTML saved with not html tags

#868
From: caleb
Date: Sat, 21 Jan 2006 03:00
43 lines
1513 bytes
Is there any reason that this code would save 'stripped' text 
(without the HTML)

Code:

  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(...)
  {
  }


///// Output/Results:



89




 

//// instead of 
<html><head></head><body><center><br><h1>89</h1><br></center></body></html>



Thanks,

Caleb
Technical Details
Message-ID: <43d1b1f8$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,4106141fab42b5e4,start
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: HTML saved with not html tags
Newsgroups: borland.public.cppbuilder.internet.web
X-User-Info: 71.99.37.67     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <43d1b1f8$1@newsgroups.borland.com>
Date: 20 Jan 2006 20:00:56 -0700
X-Trace: newsgroups.borland.com 1137816056 207.105.83.66 (20 Jan 2006 20:00:56 -0700)
Lines: 44
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail