Free Support Forum -

Combobox Selected Value not working


I am trying to import data from the XML to PDF. The selected value of
the combobox is not displaying when I open the PDF. I have attached the
XML and the PDF.

Here is the code i’m using:

Aspose.Pdf.Facades.Form form = new Aspose.Pdf.Facades.Form(@“D:\NewPDF.pdf”, @“D:\temp\NewPDF1.pdf”);
FileStream fs = new FileStream(@“D:\PDF1.xml”, FileMode.Open);
form.FillField(“State”, “KA”);


Hi Ganesh,

Thanks for using our products.<!–[if gte mso 9]>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val="–"/>
<m:smallFrac m:val=“off”/>
<m:lMargin m:val=“0”/>
<m:rMargin m:val=“0”/>
<m:defJc m:val=“centerGroup”/>
<m:wrapIndent m:val=“1440”/>
<m:intLim m:val=“subSup”/>
<m:naryLim m:val=“undOvr”/>
<![endif]–><!–[if gte mso 10]>

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";}

<![endif]–><span style=“font-size: 10pt; font-family: “Arial”,“sans-serif”;”>

have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as <span style=“font-family:“Arial”,“sans-serif””>PDFNEWNET-31406. We
will investigate this issue in details and will keep you updated on the status
of a correction.

<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif””>We
apologize for your inconvenience.

Hi Ganesh,

Thanks for your patience. We have further investigated this problem and have found that the problem is occurring because field State must be accessed by full path: form.FillField("form1[0].Section1[0].State[0]", "KA"); instead of form.FillField("State", "KA");. Please take a look over attached PDF document that I have generated using our upcoming release version of Aspose.Pdf for 6.4.0 (we are planning to release this version within this week).

The issues you have found earlier (filed as 31406) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.