Hello again. I am really sorry for my English.
What I meant was combobox instead of choicebox.

How to change the value for the combobox? 
I have this combobox with choices (in my pdf template
file) and what I did is I use the setField() method.
The value did not display. Also, the values of the
combobox are in Japanese characters. 


Also another problem. I created a form with a combobox
and values of the combobox with a chosen  value using
setValueAsString() method. The problem is, when i open
the pdf file, a combobox with blank value will
display. The correct value will display upon clicking
the combobox. i just copied the code from this link.
and if you will open the pdf file, the combobox will
display a blank and after clicking on it, it will
display the string "RED" in it. 

I copied the code from this link:
http://itextdocs.lowagie.com/examples/com/lowagie/examples/forms/FormCombo.java

Thanks.


--- Bruno Lowagie <[EMAIL PROTECTED]> wrote:

> Didn't we have this discussion on the mailinglist a
> while ago?
>
http://thread.gmane.org/gmane.comp.java.lib.itext.general/16699
> 
> eng balduman wrote:
> 
> >Hello!
> >I have a this template pdf file that has textboxes,
> >checkboxes, and choiceboxes (form like). Then using
> >itext Stamper class I edited the values of the
> >textboxes, choiceboxes, and checkboxes  and saved
> it
> >to a new pdf file. 
> >At the beginning, the texts in the edited textboxes
> >will not display unless you will click on it and
> edit
> >it... Until i used the method
> >AcroFields.setGenerateAppearances(false) the values
> in
> >the textboxes displayed. But still the values
> choosen
> >in the choicebox did not display...
> >can you help me on how to choose values from the
> >choicebox? i used AcroFields.setField() method. is
> >there another way? :) thanx in advance.
> >
> 


Send instant messages to your online friends http://uk.messenger.yahoo.com 


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to