Hi, I'm using Aspose Words 3.7.0.0 and I'm trying to build a table using
some code like the following
...
builder.MoveToMergeField(bookmark)
builder.Write("")
builder.Font.Name = "Arial"
builder.CellFormat.VerticalAlignment = CellVerticalAlignment.Center
builder.InsertCell()
builder.CellFormat.Borders.LineStyle = LineStyle.None
builder.CellFormat.Width = 2 * px
builder.InsertCell()
'Even commenting the following rows I can't get top and bottom borders
builder.CellFormat.Borders(Aspose.Words.BorderType.Top).LineStyle = LineStyle.Single
builder.CellFormat.Borders(Aspose.Words.BorderType.Left).LineStyle = LineStyle.Single
builder.CellFormat.Borders(Aspose.Words.BorderType.Bottom).LineStyle = LineStyle.Single
builder.CellFormat.Borders(Aspose.Words.BorderType.Right).LineStyle = LineStyle.Single
'Even commenting the previous rows I can't get top and bottom borders
builder.CellFormat.Borders.LineStyle = LineStyle.Single
builder.CellFormat.Borders.LineWidth = 1
builder.CellFormat.Width = 4 * px '7"
builder.Bold = True
builder.RowFormat.Alignment = RowAlignment.Center
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center
builder.Write(dtOffeTestata.Rows(0).Item("NORME"))
...
builder.EndRow()
builder.EndTable()
...
I obtain the word document attached and the top and bottom borders of the cell
with NORME as text are missing, only left and right bordes are visible.
How can I get it working ?
Thank You
Claudio Mellina