Hi

I want to generate the background color in my PdfPCell by myself. But it
doesn’t work. What’s wrong? May I missing the forest through the trees…

My Code:
PdfPCell cell = new PdfPCell(new Paragraph("Test", f9_curier));
cell.BackgroundColor = itext.BaseColor.LIGHT_GRAY; //it works
cell.BackgroundColor = System.Drawing.Color.FromArgb(235,235,235); //it
doesn't work

Message:
An implicit conversion from type "System.Drawing.Color" to
"iTextSharp.text.BaseColor" is not possible.

The cell.BackgroundColor needs a "BaseColor". Nevertheless is there a way to
deal with it?

Hope you can help me...

Grettings
Henry

-- 
View this message in context: 
http://old.nabble.com/Problems-with-BackgroundColor-in-PdfPCell-tp26886453p26886453.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to