I'm using AutoFiller in a manner similar to case 3 in the AutoFilling.java sample. I keep getting array index out of bounds errors on the autoFiller.importData statement. It's always one more than the number of columns. The stacktrace points to a Vector issue. I've examined my code over and over. The Vectors I'm providing are filled correctly. They are also sized correctly. If I arbitrarily increase the size of the Vectors without providing any more data I get a null pointer exception on the importData. What do I have to do to satisfy ImportData?
I've uploaded the pdf. For various reasons sending you the source is not practical. You could not test it even if I sent it to you. Could you just give me some clues as to what would cause this?
We will test with it and show you the result. What we need is your operation information, we do not need the complete project to run. Anyway, Thanks a lot.
You will be unable to test this. It is written in VB but references the Java classes. We compile the VB into Java classes. The Mono compiler does a good job of translating. It also runs in .Net. Here it is anyway.
Thanks for your resource sharing. We analyzed your code and tested with your PDF template. Unfortunately, everything is OK. Please test my code in your platform and tell me the result.
Form form = new Form(fileName); String[] fieldNames = form.getFieldsNames(); for (int i = 0; i < fieldNames.length; i++) { pdfAutoFiller.unFlatten(fieldNames[i]); } pdfAutoFiller.importData(); pdfAutoFiller.close(); } catch (Exception ex) { System.out.println(ex.toString()); }
That is very strange. The code ran well in my platform. I am not sure whether you downloaded the latest version 2.0. Please confirm it and tell me the result. I will continue this issue until it has been resolved.
BTW, a new release 2.1 will be published soon. Please try after that.