Solved

Highlight radiobutton list using iTextSharp

Posted on 2011-02-25
4
1,101 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
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)…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

840 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