rvhtmlimport - List Index Out Of Bounds (1)

General TRichView support forum. Please post your questions here
Post Reply
bgl
Posts: 1
Joined: Mon Oct 22, 2007 12:18 am

rvhtmlimport - List Index Out Of Bounds (1)

Post 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
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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)
Post Reply