Set selected item to a combobox

Hi,
I have an combobox which already contains items in it. Can anyone tell me how to set selected item/value to a combobox. I am using Aspose.Pdf 6.3.0 full version.

Thanks,
Ganesh

Hi Ganesh,

Thanks for using our products.

Please try using Selected property of ComboBoxField class present under Aspose.Pdf.InteractiveFeatures.Forms Namespace. In case you encounter any issue or you have any further query, please feel free to contact. We apologize for your inconvenience.

Hi,
How can I get the combox field which is already present in the pdf and set selected value for that? I tried using Form.GetField, but it is returning an empty string. And also I need to set selected item based on value, not index. Can you give me some sample code??