ceTe,
I have created a document that contains a table with several columns, including a column for a 'sell price' in US dollars.
We now have a need to proceed the dollar amount in some of the 'sell price' cells with one or more special characters from the webdings, wingdings, and/or zapfdinbats fonts. Something like;
? 2.50
How can I load a single table cell with two different character strings using different fonts?
I know that formattedtext hands this, but since it's going into a table cell, I don't have the X & Y coordinates.
Thank you.
Special Characters in Table Cell
Re: Special Characters in Table Cell
Forum member · Nov 12, 2007ceTe,
I worked out part of my issue using your Help Library. Hold off on spending any time with this, and I'll keep working on it. I'll get back to you if I can't resolve the issue.
Thanks
Re: Special Characters in Table Cell
Forum member · Nov 12, 2007ceTe,
Still trying to get a formatted text area into a table cell. The formatted text area needs to have two different font faces, zapfdingbats for the leading special characters and helvetica for the price.
Here is my code;
'build the price field
Dim style As FormattedTextAreaStyle = New FormattedTextAreaStyle(FontFamily.Helvetica, 8, False)
Dim strUnitPrice As String = CStr(decUnitPrice)
'Leading characters
Dim strPriceField As String = "<p><font face = ""zapfdingbats"">A N</font face>"
'Unit price
strPriceField += "<font face = ""helvetica"">" + strUnitPrice + "</font face></p>"
Dim txtText As FormattedTextArea = New FormattedTextArea(strPriceField, 0, 0, 16, 10, style)
mycell = ReqItemsRow.Cells.Add(txtText)
mycell.Align = CellAlign.Left
mycell.VAlign = CellVAlign.Bottom
The cell will either show the leading special characters, or the price, but not both together.
Thanks for your help.
Re: Special Characters in Table Cell
Forum member · Nov 12, 2007ceTe,
Found the problem. Column length (16) should have been 56.
Probelm solved. Thanks for your patience.