Believe I am using fields.SetListSelection(). Below is my code. But the field disappears when when its flattened. If I don't flatten it, the field shows up blank until I click on it, and after I click on it the items are not selected.
--code doesn't work - end up with blank listbox Dim MemStream As New System.IO.MemoryStream 'Open PDF Reader Dim reader As iTextSharp.text.pdf.PdfReader = New iTextSharp.text.pdf.PdfReader("test.pdf") 'Create Stamper from Reader and Memory Stream Dim stamper As PdfStamper = New PdfStamper(reader, MemStream) Dim fields As iTextSharp.text.pdf.AcroFields = stamper.AcroFields Dim mystrings() As String = "item2,item3".Split(",") fields.SetListSelection("List Box1", mystrings) Paulo Soares-3 wrote: > > You want fields.SetListSelection(). > > Paulo -- View this message in context: http://old.nabble.com/SetFields-Issue---Using-iTextSharp-tp28169721p28171333.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/