Hi all,
I use an application that generates a pdf file from a MySQL db table, using the iText class.
It sometimes happens that when inside the ["contents"] column there are some formatting errors, the application responds with this error:
Line 272:
List<IElement> lst = HtmlConverter.ConvertToElements(string.Format("<span style='text-align: justify;text-justify: inter-word;'>{0}</span>", dt.Rows[i]["contents"].ToString())).ToList();
[IndexOutOfRangeException: Index was outside the bounds of the array.]
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3930.0
To solve the problem, simply go to the row of the the ["contents"] column and correct the error.
Is there a way to warn of the problem without returning this error?
Any help really appreciated.