Newbie here. I’m writing out a table to a Word document bookmark and everything is fine except for the very last row of text, which is printing, but the border line which closes off the table is not printing. If the last row has word-wrapping in a cell then I cannot get the final borderline to print but if the last row does not have word wrapping, then the fnal borderline will print.
Here is some sample code in C#:
// Print at the nodeFunding bookmark in Word
builder.MoveTo(nodeFunding);
builder.StartTable();
builder.RowFormat.Borders.Top.LineWidth = 0.5;
builder.RowFormat.Borders.Right.LineWidth = 0.5;
builder.RowFormat.Borders.Left.LineWidth = 0.5;
builder.RowFormat.Borders.Top.LineStyle = LineStyle.Single;
builder.RowFormat.Borders.Right.LineStyle = LineStyle.Single;
builder.RowFormat.Borders.Left.LineStyle = LineStyle.Single;
// write a row
builder.InsertCell();
builder.Write(ReplaceAscii.Replace(strCell1));
builder.ParagraphFormat.Style = doc.Styles["DataField"];
builder.InsertCell();
builder.Write(ReplaceAscii.Replace(strCell2));
builder.ParagraphFormat.Style = doc.Styles["DataField"];
builder.RowFormat.AllowAutoFit = true;
builder.EndRow();
builder.RowFormat.Borders.Bottom.LineStyle = LineSTyle.Single;
builder.RowFormat.Borders.Right.LineStyle = LineSTyle.Single;
builder.RowFormat.Borders.Left.LineStyle = LineSTyle.Single;
builder.EndRow();
builder.EndTable();
Any hints?
Dave