itext-questions  

Re: [iText-questions] Combobox printed, prints undesired value

Fhomasp
Fri, 27 Jun 2008 09:27:45 -0700

When calling the method using an extra "" in the vararg works.  Although it
does seem more like a workaround instead of a solution.
I did modify the code in the book a bit because otherwise a user would be
able to just type in any value in the textfield contained in the cell.  Now
the user is limited to the choices I provide.

But I guess it'll have to do.  Thanks m8.
I'll see about that donation ;-)


wasegraves wrote:
> 
> -------------- Original message ----------------------
> From: Fhomasp <[EMAIL PROTECTED]>
>>
>> 
>> What do you mean?
>> I did write the code in the original post, it's right there in the first
>> post.
>> 
>> I'm using the latest version of Adobe Reader and I have a full licence on
>> Acrobat professional as well.
>> I also have had the book in front of me from the beginning.  How else
>> would
>> I be able to base the whole method on the code in the book at page 487.
>> 
>> When I open the document no content is displayed in the combofield, the
>> textfield itself.  But when printed the first value of the list is
>> displayed
>> in the combofield on paper.
> 
> Mea culpa! I didn't see the part you had added below the close of your
> message.
> 
> Now, please open the choicefields.pdf example from the book, via the link
> I provided, and see if it exhibits the behavior you don't want. BTW, I
> wouldn't have suggested a solution that has not worked for me. You might
> try adding a "" or "None" option at the beginning of your options, and set
> that as default, to see if that gives you the desired behavior. It should
> take you les than 5 minutes to modify the ChoiceFields code as I've
> suggested, recompile and run it, to see if it does what you want, when
> modified.
> 
> Good luck with your project.
> 
> Best regards,
> Bill Segraves
> 
> P.S. It's not at all surprising that you require a large amount of code
> for your 5-page form. I have a 4-page form that requires about 3,000 lines
> of code.
> 
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Do you like iText?
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Or leave a tip: https://tipit.to/itexttipjar
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Combobox-printed%2C-prints-undesired-value-tp18151124p18155940.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar