Free Support Forum - aspose.com

I can not fill a combo that I have in a template developed in Adobe Designer

Hi,

I can not fill a combo with a lot of fields.

Please, Could you tell me what I am doing bad?

Thanks,

Ester

Dim form As Aspose.Pdf.Kit.Form = New Aspose.Pdf.Kit.Form("C:\Documents and Settings\edelmonte\My Documents\Visual Studio 2005\WebSites\WebTest\input.pdf", "C:\Documents and Settings\edelmonte\My Documents\Visual Studio 2005\WebSites\WebTest\output2.pdf")

Dim items As String() = {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30"}

form.FillField("Formulario1[0].#subform[0].ListaDesplegable1[0]", items)

form.Save()

Hi,

We're looking into the matter and you'll be updated the earliest possible.

Regards,

Dear customer,

Thanks for considering Aspose.Pdf.Kit.

I am afraid that you misunderstood the syntax of Form.FillField(String fieldName, String fieldValues). For a drop-down list box, the fieldValues to be set should be included in its list items, which should be pre-designed when you developed it in the Adobe Designer. Please refer to our demos.

FYI, you can also add a new item to its list items by FormEditor.AddListItem(String fieldName, String itemName).

If you still have any other question, please feel free to contact us.

Best regards.

Hi Ester,

Can you please share whether the above information and the AddListItem method helped you resolve this issue?

Regards,