Any Itextsharp 5.0.2 expert

34 views
Skip to first unread message

svanalyst svanalyst

unread,
Jul 9, 2010, 9:47:51 AM7/9/10
to dotnetde...@googlegroups.com
Hi guys,

I am trying to print a check mark which is available in wingdings font, although i am able to get the char in chunk, but when i want to print in the pdftable, its not printing anything in that cell, here is the code

BaseFont bfR = BaseFont.CreateFont("Wingdings",BaseFont.IDENTITY_H,BaseFont.EMBEDDED);

                            Font hF = new Font(bfR, 7);
                            //Chunk chunk = new Chunk("\u0253", hF);
                            dataCell = new PdfPCell(new Phrase(new Chunk ("\u0253", hF)));
                            pdfTable.AddCell(dataCell);

its not printing any character, 

i would appreciate if any expert would help me point out where i am going wrong.

pbskat

unread,
Aug 29, 2010, 3:55:25 AM8/29/10
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hi gurus,

in order to increase the urgency: I have exactly the same problem with
a slightly different approach and result:

Dim WngFont As iTextSharp.text.Font =
FontFactory.GetFont("Wingdings", 10.0F, Font.BOLD)
lCell = New PdfPCell(New Phrase(New Chunk(Chr(67), WngFont)))
lCell.BorderWidth = 0.0F
lCell.VerticalAlignment = Element.ALIGN_TOP
TheTable.AddCell(lCell)

the result is an uppercase "D" in that cell. I could use + and -
character instead but it is much nicer to have some kind of graphical
representation so if someone has a solution I would really appreciate.
Reply all
Reply to author
Forward
0 new messages