Adobe LiveCycle Designer Compatibility

Adobe LiveCycle Designer Compatibility

Forum member · Apr 18, 2006
We are testing the use of Adobe's LifeCycle Designer to create PDF forms. Then we are trying to use the Merger library to automate the generation of filling the forms out but no luck. Our simple test app and pdf always generates the notorious: Object reference not set to an instance of an object When we try to reference the first or any field in the PDF. For example: MergeDocument document = new MergeDocument(MapPath("../PDFs/coupon.pdf")); document.Form.Fields["AccountNo"].Value = this.txtAcctNo.Text; document.DrawToWeb( "AcroFormFiller.pdf" ); But no avail I have tried numerous PDF settings in Adobe but I can't get it to work. The example's provide by CeTe work fine so the library is functioning in that regard. Any suggestions on usage w/ LifeCycle designer would be greatly appreciated. Thanks

Re: Adobe LiveCycle Designer Compatibility

Forum member · Apr 19, 2006
I downloaded this Beta and it gets past the problem but all it recognizes is a single field (FieldsList.Count = 1) for the actual document. So, now I can open it but no luck whatsoever in it recognizing an actual form field generated from Adobe LiveCycle? Have you tested with LiveCycle and Merge product?

Re: Adobe LiveCycle Designer Compatibility

Support · Apr 19, 2006
Hello, Yes our DynamicPDF Merger for .NET product does work with Adobe LiveCycle without any problem. The issue you are having could be a problem with the names of the form fields. You see, Designer typically saves the names of the form fields in a hierarchical manner. A form field's name could be the concatenation of its parents name like "Parent2.Parent1.FormFieldName" instead of "FormFieldName" as might be expected. When you are referencing a form field make sure that you have provided the entire name for that form field. Also the likely reason FieldList.Count property is returning value of 1 is because it is counting the parent field (main container). If you check whether the parent field has child fields and if child fields exist, then do FieldList.Count on the child fields, you will get the correct number of fields. Thanks, ceTe Software Support Team

Re: Adobe LiveCycle Designer Compatibility

Forum member · Apr 19, 2006
Got it..the "ChildFields" was not on the formfiller example I picked so I was going down the wrong path. One more question. I cannot access the field for a BarCode do you know if it is accessible?

Re: Adobe LiveCycle Designer Compatibility

Support · Apr 19, 2006
Hello, Using our Merger for .NET product, you can not fill in the barcode form fields. The work around to this is to add a barcode using our Barcode page element and place it at the same place as your barcode form field at runtime. You can find out the co-ordinates of the barcode form field. Thanks, ceTe Software Support Team

Re: Adobe LiveCycle Designer Compatibility

Forum member · Apr 19, 2006
But, is there a way to add the Barcode in the MergeDocument? Or do you have to save it off and open in PdfDocument and merge? Be great to just do in MergeDocument that is doing the form filling but I don't see how its available...love to see how it would work.

Re: Adobe LiveCycle Designer Compatibility

Forum member · Apr 19, 2006
Figured it out...(i'm slow): using the "Merge Document" (oMergeDoc) to generate a new page in a "Document" then just add the element. Document oDoc = new Document(); oDoc.Pages.Add(oMergeDoc.Pages[0]); oDoc.Pages[0].Elements.Add(new Interleaved25("55448877", 380, 4, 18, false)); oDoc.Draw("c:\\testbed\\coupon.pdf");

Re: Adobe LiveCycle Designer Compatibility

Forum member · May 16, 2006
Ok. So I just found this thread, and I'm attempting to make a form to fill out with Merger. If I can get this working I will most assuredly be purchasing merger professional server shortly. I'm generating my acro form with Designer 7.0. Here's a code snippet: // Add content to the page document.Form.Fields["Ledger[0]"].ChildFields["LedgerPage1[0]"].ChildFields["storeNumber[0]"].Value = store; This is confusing in two ways, first, I have to access the base page name, then the Form on the base page, then the field. Secondly, the names aren't as I named them in the file. The [0] was appended by someone, and it won't work without them. How can I setup my PDF file to behave like your example: document.Form.Fields["storeNumber"].Value = etc; ? Thanks! Ken Perkins

Re: Adobe LiveCycle Designer Compatibility

Support · May 16, 2006
Hello Ken, To perform form filling our product requires you to reference the form fields by their full field name. There is no way you can reference the form fields by just using its short name. Nothing within our product is appending [0] to the form field name. It is how Designer typically saves the names of the form fields in a hierarchical manner. A form field's name could be the concatenation of its parents name like "Parent2.Parent1.FormFieldName" instead of "FormFieldName" as might be expected. If you create the PDF form using Acrobat Professional the form field names will be as you expect. Thanks, ceTe Software Support Team