Hello,
I am struggling setting the Font Size of all the Text in my Table that i am drawing inside of my pdf document. It seems like it is defaulting to either 10 or 12... I need to display at least 4 columns in a row, and i want to reduce the font size to at least 8. Is there any way to do this without setting up a unique block each time and then trying to add it to Cell, and Row , etc...
My code looks like this below:
---------------------------------------------------------------------------------------------------------------------------------------------------------
Dim RevenueTable As New Table()
Dim firstRow As TableRow = RevenueTable.Rows.AddTableRow()
firstRow.Cells.AddTableCell().Blocks.AddBlock().InsertText("---------------------------")
firstRow.Cells.AddTableCell().Blocks.AddBlock().InsertText("--------------------SERVICE")
firstRow.Cells.AddTableCell().Blocks.AddBlock().InsertText(" DETAILS-------------------")
firstRow.Cells.AddTableCell().Blocks.AddBlock().InsertText("---------------------------")
Dim secondRow As TableRow = RevenueTable.Rows.AddTableRow()
secondRow.Cells.AddTableCell().Blocks.AddBlock().InsertText(objReceipt.SERVCODE(i))
secondRow.Cells.AddTableCell().Blocks.AddBlock().InsertText(objReceipt.SERVNAME(i))
secondRow.Cells.AddTableCell().Blocks.AddBlock().InsertText(objReceipt.SERVQTY(i))
secondRow.Cells.AddTableCell().Blocks.AddBlock().InsertText("")
Dim ServiceCodeRowDesc As TableRow = RevenueTable.Rows.AddTableRow()
ServiceCodeRowDesc.Cells.AddTableCell().Blocks.AddBlock().InsertText("Revenue Desc")
ServiceCodeRowDesc.Cells.AddTableCell().Blocks.AddBlock().InsertText("Item Price")
ServiceCodeRowDesc.Cells.AddTableCell().Blocks.AddBlock().InsertText("Qty")
ServiceCodeRowDesc.Cells.AddTableCell().Blocks.AddBlock().InsertText("Revenue Amount")
{....lines of code removed ....}
editor.TextProperties.FontSize = 8
editor.DrawTable(RevenueTable)
------------------------------------------------------------------------------------------------------------------------------------------------
The font size is not 8.