🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
1 messages
1 total messages Started by caleb Sat, 21 Jan 2006 03:00
HTML saved with not html tags
#868
Author: 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
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