Welcome Guest Search | Active Topics | Sign In | Register

Exception Thrown When Appending 3rd Document Options
Kevin
Posted: Friday, March 21, 2014 12:21:26 PM
Rank: Member
Groups: Member

Joined: 10/15/2012
Posts: 13
The code is:
Code: C#
_form = PdfDocument.Merge(_form, p);


This works fine, until the 3rd document (all documents are derived from the same template, and we even tried using the exact PDF unmodified), at which point the exception below is thrown. Also note that, this problem occurs on 1/2 of the production servers (same OS version, patches, IIS, etc), It always works fine on our integration environment, and never works on our development machines (Windows 7, fully patched, VS 2013).

The version we are using is 4.0.60.2. When we use the latest version (which we have not purchased) it works (watermarked), but we have other problems with that version that requires us to change the height on the PDF form fields.

Exception:
System.IndexOutOfRangeException: Index was outside the bounds of the array. at EO.Pdf.Internal.dc.b(Int32 A_0) at EO.Pdf.Internal.dc.a(ai A_0, Int32 A_1) at EO.Pdf.Internal.dc.a(ai A_0) at EO.Pdf.Internal.e3..ctor(e3[] A_0, ai[] A_1) at EO.Pdf.Internal.c4.a.a(a[] A_0) at EO.Pdf.Internal.c4..ctor(hj A_0) at EO.Pdf.Internal.hj.c() at EO.Pdf.PdfDocument.Merge(PdfDocument[] docs) at SOMENAMESPACE.FormsPrinting.EOPdfForm.StartFile(String filename, Int32 pages, SystemError& outError)
eo_support
Posted: Friday, March 21, 2014 2:33:43 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

In that case you may need to upgrade to the latest version. If you believe the field height issue is a bug, we will be more than happy to look into it if you can provide test code/file that demonstrates the problem. Your version is more than two years old, and over the year we have received many test files/test cases from our user, so the new version is much more robust and tolerate than the old version.

Thanks!
Kevin
Posted: Friday, March 28, 2014 2:49:17 PM
Rank: Member
Groups: Member

Joined: 10/15/2012
Posts: 13
So we updated the license, and applied the new key, but now the exception is back again. The only difference is that the demo version has a watermark. It seems like something in the demo code is "fixing" this exception; but of course I need it to work without the demo watermark.
eo_support
Posted: Friday, March 28, 2014 2:52:25 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

If you see the watermark, then either you are not applying the correct license key, or you are still running the old version. Please check the version of your EO.Pdf.dll. It should have a version number 5.0.x. If the first number is not 5, then you are on a different release.

Thanks!
Kevin
Posted: Friday, March 28, 2014 2:54:43 PM
Rank: Member
Groups: Member

Joined: 10/15/2012
Posts: 13
We have the latest dll and the correct key. What I said was we get the same error from the old dll that we get in the new dll. But if we DO NOT give it a key it correctly merges the 3 documents together (however with the demo watermark).
eo_support
Posted: Friday, March 28, 2014 2:57:26 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Ah....I see. In that case can you create a small test app and send the test app to us? We will PM you as to where to send the test app.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.