Posted on: 12/5/2013 7:04:22 PM | Views : 1318

This is some old 1.1 code and I am trying to fix the itextsharp so that it creates the file correctly, it creates about half the file then throws the following error.
 
Index was outside the bounds of the array. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [IndexOutOfRangeException: Index was outside the bounds of the array.] iTextSharp.text.Row.AddElement(Object element, Int32 column) +187 iTextSharp.text.Table.MergeInsertedTables() +2319 iTextSharp.text.Table.Complete() &# ...

Go to the complete details ...