Solved

Highlight radiobutton list using iTextSharp

Posted on 2011-02-25
4
1,098 Views
Last Modified: 2013-12-02
Hello,
I am trying to highlight required fields on an existing PDF using iTextSharp in a .net windows application. I am having trouble highlighing a radiobutton list. I've used getappearancestates to find the correct values but when I use .SetFieldProperty(FieldName, "bordercolor", iTextSharp.text.Color.YELLOW, null); It is not reflected on the pdf. When I look at the properties on the PDF for the radiobuttonlist the yellow background color is there. Just not rendering. I'm using acrobat pro 9 to view the PDFs.

Thanks
0
Comment
Question by:rtorres1
  • 2
  • 2
4 Comments
 
LVL 11

Expert Comment

by:wrmichael
ID: 35785964
Are you using error handling in your code to trap errors?

0
 

Accepted Solution

by:
rtorres1 earned 0 total points
ID: 35786077
I figured it out. I added:
GenerateAppearances = false
and it worked
0
 
LVL 11

Expert Comment

by:wrmichael
ID: 35786107
Great!  Sorry I didn't help much.  

0
 

Author Closing Comment

by:rtorres1
ID: 35814109
none
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Learn how to automatically add page numbers in your next InDesign project. This can be very helpful in multi-page books and magazines that you are designing. Make sure your Pages window visible.:  In the document you wish to add page numbers to. Act…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now