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
this method is working bt not right
-
- Posts: 3
- Joined: Fri Apr 14, 2006 11:11 am
- Location: india
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Well, RvHtmlImport is not perfect. It looks like it does not support align attribute in H1, H2, etc. tags. It does not support CSS, scripts and forms.
May be you can consider using some another HTML parser, but it will require some amount of work.
Additional info: http://www.trichview.com/forums/viewtopic.php?t=359
May be you can consider using some another HTML parser, but it will require some amount of work.
Additional info: http://www.trichview.com/forums/viewtopic.php?t=359