itextsharp and Multiple Font types in a Table Cell



Hello

I have just started messing with the itextsharp component and was
wondering if it was possible to add two concatenated phrases each with
a different font type to a a table cell

eg
############################
Dim pdfCell As Cell
Dim phFirst As Phrase
Dim phSecond As Phrase
Dim fntNormalText As Font = FontFactory.GetFont(FontFactory.HELVETICA,
12, Font.NORMAL)
Dim fntBoldText As Font = FontFactory.GetFont(FontFactory.HELVETICA,
12, Font.BOLD)

phFirst = New Phrase(("Name:", fntBoldText)
phSecond = New Phrase(strFirstName & " " & strSurname, fntNormalText)
pdfCell = New Cell(phFirst & phSecond)
##################################

The above doesn't work, but I was hoping someone could point me in the
right direction to accomplish the task.

Many thanks
Paul

.



Relevant Pages

  • Re: Marshall Barton help!
    ... Alias "CreateFontA" (ByVal H ... hDC As Long, _ ... ' uses the Control's font attributes to Build ... Dim sRect As RECT ...
    (microsoft.public.access.formscoding)
  • Re: Looking for a better way
    ... You could use a fixed width font like Courier new. ... Private pintLetter As Integer = 64 ... Dim gfx As Graphics ... Dim fnt As Font ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Separating Strings of Text
    ... I've set up a function for finding those models where the text font is ... CountYellowItems = intColorCount ... Dim rngCell As Range ... Dim intColorCount As Integer ...
    (microsoft.public.excel.misc)
  • Re: Separating Strings of Text
    ... "Steve Yandl" wrote: ... I've set up a function for finding those models where the text font is ... Dim rngCell As Range ... Dim intColorCount As Integer ...
    (microsoft.public.excel.misc)
  • RE: Global font color changes for print vs projection?
    ... "John Wilson" wrote: ... Dim R As Integer ... Dim oSld As Slide ... I looked for a Find & Replace feature that would recognize font formatting ...
    (microsoft.public.powerpoint)