this method is working bt not right
Posted: Mon Apr 17, 2006 10:29 am
hi
i m using this code to open html doc
{
struct stat statbuf;
char *str;
TFileStream *file = new TFileStream("****",fmOpenRead);
stat("****",&statbuf);
str= new char[statbuf.st_size-1];
file->ReadBuffer((void *)str,statbuf.st_size-1);
RvHtmlImporter1->BasePath="c:\\";
RvHtmlImporter1->LoadHtml(str);
RichViewEdit1->Format();
}
bt something is wrong there because it is not detecting even
<h2 align="center>xxxx</h>
what should i do
can't we download websites in TRichView by use of HtmlImporter directly
i m using this code to open html doc
{
struct stat statbuf;
char *str;
TFileStream *file = new TFileStream("****",fmOpenRead);
stat("****",&statbuf);
str= new char[statbuf.st_size-1];
file->ReadBuffer((void *)str,statbuf.st_size-1);
RvHtmlImporter1->BasePath="c:\\";
RvHtmlImporter1->LoadHtml(str);
RichViewEdit1->Format();
}
bt something is wrong there because it is not detecting even
<h2 align="center>xxxx</h>
what should i do
can't we download websites in TRichView by use of HtmlImporter directly