Hi,
For whatever reason, I cannot get
colors to work at all. Ive tried applying it to a Cell, PdfPCell, as well as a
font. When I try to attach it to a cell, theres no effect, and when I try to
attach it to a font that I also want to bold, it doesnt bold. The Color class
Im using is iTextSharp.text.Color, so Im guessing it shouldnt 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 cant find anything else.
Anyways, any idea why this might not be working? For cells, Ive 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, Ive 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/
