Posted by a ceTe Software moderator
Hello,
If you are evaluating v6.0 of DynamicPDF Generator, you can turn ON/OFF the borders of Table2 object using the following code.
To turn the borders OFF selectively
table.Border.Left.LineStyle = LineStyle.None;
table.Border.Right.LineStyle = LineStyle.None;
table.Border.Bottom.LineStyle = LineStyle.None;
table.Border.Top.LineStyle = LineStyle.None;
To turn all the borders OFF
table.Border.LineStyle = LineStyle.None;
If you have defined the borders to the cells then they will be visible once the table borders are turned off. So in order to turn off the cell border you can use the same properties on the Cell2 object.
cell.Border.Left.LineStyle = LineStyle.None;
cell.Border.Right.LineStyle = LineStyle.None;
cell.Border.Bottom.LineStyle = LineStyle.None;
cell.Border.Top.LineStyle = LineStyle.None;
cell.Border.LineStyle = LineStyle.None;
You can also set the Column2 objects CellDefault borders to control the cell borders at column level.
column1.CellDefault.Border.Left.LineStyle = LineStyle.None;
column1.CellDefault.Border.Right.LineStyle = LineStyle.None;
column1.CellDefault.Border.Bottom.LineStyle = LineStyle.None;
column1.CellDefault.Border.Top.LineStyle = LineStyle.None;
column1.CellDefault.Border.LineStyle = LineStyle.None;
Thanks,
ceTe software Support Team.