IndexOutOfRangeException in generating pdf


#1

Hi,

My code runs properly until the variable posBezMerkUeberschriftNr is not bigger than 19. As the condition if(posBezMerkUeberschriftNr<19) is set to 20, the application throws the error, whereas the DataTable has 42 elements .

How can this be?

I tried to design a test example, which doesn’ t use too many of our variables and objects. I hope you can reproduce the error.

Below ist the result attached as pdf, until 19.


Schreck, Jochen


#2

Dear Schreck,

Thanks for your consideration.

Please download hot fix here.


#3

Hi,

I am getting the following error when generating the pdf with many columns in a table.

In my app, the size of each column is calculated dynamically to ensure its would not larger than the predefined width. (width is 1000 in my case)

Would that be any limitation on the number of columns per page?


System.IndexOutOfRangeException: Index was outside the bounds of the array.
at eh.b(Int32 A_0)
at cf.b(Table A_0)
at bt.a(Pdf A_0, Section A_1, Table A_2, a A_3, Boolean A_4)
at cd.a(Pdf A_0, Section A_1, a A_2)
at bs.a(Pdf A_0)
at an.a(az A_0, Pdf A_1)
at Aspose.Pdf.Pdf.Save(Stream stream)
at ReportPDFUtil.ReportGenerator.GetReport(HttpResponse Response, String strReportTranID) in D:\Project\SCP-ERP\ERP\Apps\Component\ReportPDFUtil\ReportGenerator.vb:line 77


Thanks,
Kimmomo


#4

Dear Kimmomo,

Thanks for your consideration.

The max column number per page has been set to 128. Does your table has more columns than 128?



#5

Does the number of columns limitation changed recently?

bec I have only around 40 columns in my table.

Should I download the hot fix on Nov 16?


#6

Dear Kimmomo,

Thanks for your consideration.

Yes you should download the hot fix. The old column number limit is 32.