Free Support Forum -

Bug with versions above


I get an error that looks like this:

System.IndexOutOfRangeException: Index was outside the bounds of the array. at dz.e(Int32 A_0) at d1.a(bx A_0, Int32 A_1, Int32[] A_2, Int32[] A_3, Int32 A_4) at d1.a(bx A_0, Int32 A_1, Int32[] A_2, Int32[] A_3, Int32 A_4) at d1.b(bx A_0) at bx.ap() at am.a(ax A_0, Pdf A_1) at Aspose.Pdf.Pdf.Save(String pdfFile) at AsposeTest1.WebForm1.DoPDF() in c:\inetpub\wwwroot\AsposeTest1\WebForm1.aspx.vb:line 55

This happened with versions and But an older version I had of worked just fine with my XML file.

Here’s my code:
Dim pdf As New Pdf(“C:\Inetpub\wwwroot\AsposeTest1\bin\Aspose.Pdf.lic”)
pdf.BindXML(“C:\Development\Aspose\Template\badfile_test.xml”, Nothing)

I’ve marked 2 cells at the end of the XML file with a red background (backgroundcolor=“red”). The text in those cells are ‘TOTAL FINANCE CHARGE’ and ‘122.32’, but if you set either of them to blank, the PDF gets generated just fine. The problem comes up when both of those cells are set to some non-blank text.

So I’m wondering what changed between and which would cause this?

The XML file is too big to paste in here, so in case you need to take a look at the XML, you can view it here:

Thank you in advance for your help,

Dear Kostik,

Thanks for your consideration.

Please download hot fix here.

Great, whatever you did in fixed it!
Thanks for the timely support!