Solved

Highlight radiobutton list using iTextSharp

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
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…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 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

15 Experts available now in Live!

Get 1:1 Help Now