Hi,

For whatever reason, I cannot get colors to work at all. I’ve tried applying it to a Cell, PdfPCell, as well as a font. When I try to attach it to a cell, there’s no effect, and when I try to attach it to a font that I also want to bold, it doesn’t bold. The ‘Color’ class I’m using is iTextSharp.text.Color, so I’m guessing it shouldn’t be working for coloring cells. The Tables tutorial (http://itextsharp.sourceforge.net/tutorial/ch05.html) does not specify what Color class to use though, and I can’t find anything else. Anyways, any idea why this might not be working? For cells, I’ve tried all of these:

cellCurr.GrayFill = 0.9f;

cellCurr.BackgroundColor = Color.RED;

cellCurr.BackgroundColor = new Color(50, 50, 50);

(where cellCurr is either Cell or PdfPCell)

 

and for fonts, I’ve tried this:

Font fontHeading = FontFactory.GetFont("Arial", 7, Font.BOLD, new Color(50, 50, 50));

 

Any ideas as to why none of this is working?

 

Thanks.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to