Sign In  Sign Up Live-Chat

Formfill 7.0 Static Form issue

Last post 11-22-2007, 1:57 AM by forever. 4 replies.
Sort Posts: Previous Next
  •  11-13-2007, 8:36 PM 102453

    Formfill 7.0 Static Form issue

    Attachment: Present (inaccessible)

    I'm currently using Aspose.Pdf.Kit 2.2.0 on the server I am having an issue with.  I currently have 6.0 Static forms already working on the server for over one year.  The last two weeks I've been working on adding some new forms that are 7.0 Static forms.  The have all of the formfield names and used the new code to populate 7.0 forms but they are blank.  Funny thing is it increases the file size.  Code below and I will attach the form I am filling.  No errors at all.  I set some code watches and all variable have the right information and I verified that the fields have the correct numbers.  Any ideas?  Thanks.

    Dim pdfForm As Form = New Form(inputfile, outputfile)

            With pdfForm

                'New Way
                .FillField("form1[0].#subform[0].bankname[0]", BankName)
                .FillField("form1[0].#subform[0].bankcode[0]", BankCode)
                .FillField("form1[0].#subform[0].bankaddress[0]", BankAddress)
                .FillField("form1[0].#subform[0].companyaddress[0]", CompanyAddress)
                .FillField("form1[0].#subform[0].customers[0]", Customer)
                .FillField("form1[0].#subform[0].repodate[0]", RepoDate)
                .FillField("form1[0].#subform[0].customeraddress[0]", CAddress)
                .FillField("form1[0].#subform[0].year[0]", Year)
                .FillField("form1[0].#subform[0].make[0]", Make)
                .FillField("form1[0].#subform[0].model[0]", Model)
                .FillField("form1[0].#subform[0].bodytype[0]", Body)
                .FillField("form1[0].#subform[0].priortitlenum[0]", PriorTitleNum)
                .FillField("form1[0].#subform[0].vin[0]", VIN)
                .FillField("form1[0].#subform[0].color[0]", Color)
                .FillField("form1[0].#subform[0].mileage[0]", Mileage)
                .FillField("form1[0].#subform[0].mileage1[0]", Mileage)
                .FillField("form1[0].#subform[0].bankname1[0]", BankName)
                .FillField("form1[0].#subform[0].date1[0]", TodayDate)
                .FillField("form1[0].#subform[0].date2[0]", TodayDate)

                'Prep and save
                .FlattenAllFields()
                .Save()

     
  •  11-13-2007, 10:53 PM 102464 in reply to 102453

    Re: Formfill 7.0 Static Form issue

    Dear pvberryessa,

    Thanks for considering Aspose.Pdf.Kit.

    Please make sure that the right parameters have been passed to FillField function. In your PDF template, the full field name is like "F[0].P2[0].bankname[0]", instead of "form1[0].#subform[0].bankname[0]". Please correct it and try again. FYI, short name is also supported in Kit for both Adobe 6 & 7, i.e., you can just pass "bankname" as the field name.

    Best regards.


    Luke Fu
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  11-14-2007, 12:21 AM 102471 in reply to 102464

    Re: Formfill 7.0 Static Form issue

    Thanks for your quick response.  I changed all fields to match their specific LifeCycle Designer field names like you had mentioned.  All but three were on F[0].P1[0].  The remaining were on F[0].P2[0].  The form is still blank after testing but this time the file size was not increased at all.  Could pre populating some of the fields with data prior to filling the form may cause an issue?  By default, I check a few of the boxes and manually typed 2 fields.  Thanks again for your help.  I do have the old code in place like you had mentioned just passing the 'Bankname' as a field name but that also resulted in a blank form.  Currently commented out since I read you must use the full fieldname when using forms created in LifeCycle Designer.  Any additional ideas?  Your help is appreciated.
     
  •  11-14-2007, 6:45 AM 102539 in reply to 102471

    Re: Formfill 7.0 Static Form issue

    Dear pvberryessa,

    Form.FillField() has already been promoted to support both short field name and full field name. I did found some bugs from your report, and this has been logged as PDFKITNET-4038. But as a workaround, please download the latest version 2.6.4 and test again before another hotfix's releasing.  Please feel free to put forward whatever problems you meet :)

    Best regards.


    Luke Fu
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  11-22-2007, 1:57 AM 103583 in reply to 102539

    Re: Formfill 7.0 Static Form issue

    Attachment: Present (inaccessible)
    hi,

    Please try the attachment before we publishing the official hotfix.

    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
View as RSS news feed in XML