Page 1 of 1

rvhtmlimport - List Index Out Of Bounds (1)

Posted: Mon Oct 22, 2007 12:43 am
by bgl
When importing the below specified HTML using RVHTMLImport into a TRichViewEdit, and then performing a left mouse click - An Exception occurs : List Index Out Of Bounds (1).

Code: Select all

<font size=2 color="#000000" face="Arial">
<ol>
<li value=1></li>
</ol>
</font>
Other HTML code seems to import fine. I am using version 1.9.24, and latest RVHTMLImport component. The problem came up during testing, and is likely to occur again during normal operation of our application.

The problem can be reproduced using the demo application that ships with RVHTMLImport. Can anyone else confirm the problem?

Thanks,
Elliot

Posted: Thu Oct 25, 2007 2:17 pm
by Sergey Tkachenko
In some cases, RvHtmlImporter generates invalid documents (see "Valid Documents" topic in the help file).
It can be fixed by calling NormalizeRichView(RichView1.RVData) after RvHtmlImporter1.LoadHtml.
NormalizeRichView is from RVNormalize unit, included in RichViewActions (but can be used separately)