I have the need to align one of my cells in a table different than the row alignment. for example
Dim MyRow1 As Row = MyTable.Rows.Add(10,ceTe.DynamicPDF.Font.HelveticaBold, 8, RgbColor.Black, RgbColor.White)
MyRow1.Align = TextAlign.Center
MyRow1.VAlign = VAlign.Center
MyRow1.Padding = 0
MyRow1.Cells.Add(dr("SSID"))
MyRow1.Cells.Add(dr("Last Name"))
there are several more cells, but how do I set the cell with the Last Name to align Left.
cell alignment
Re: cell alignment
Support · Jan 9, 2009Hello,
You can set the alignment for the cell using the sample code below:
Dim MyRow2 As Row = MyTable.Rows.Add(30)
Dim MyCell1 As Cell = MyRow2.Cells.Add("Rowheader 1", Font.HelveticaBold, 16, _
RgbColor.Black, RgbColor.Gray, 1)
MyCell1.Align = CellAlign.Left
MyCell1.VAlign = CellVAlign.Center
Thanks,
ceTe Software Support Team