BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
r = tbl.AddRow(false); r.HeightType = TableRowHeightType.AtLeast; r.Height = 20f; r.RowFormat.Borders.Bottom.BorderType = BorderStyle.None; r.RowFormat.Borders.Bottom.LineWidth = 0f; r.Cells.Clear(); r.AddCell(false); r.AddCell(false); r.Cells[0].Width = 200f; r.Cells[1].Width = w - 200f; r.Cells[0].CellFormat.Borders.Right.BorderType = BorderStyle.None; r.Cells[0].CellFormat.Borders.Right.LineWidth = 0f; r.Cells[0].CellFormat.Borders.Bottom.BorderType = BorderStyle.None; r.Cells[0].CellFormat.Borders.Bottom.LineWidth = 0f; r.Cells[0].CellFormat.Borders.Top.BorderType = BorderStyle.None; r.Cells[0].CellFormat.Borders.Top.LineWidth = 0f; r.Cells[1].CellFormat.Borders.Left.BorderType = BorderStyle.None; r.Cells[1].CellFormat.Borders.Left.LineWidth = 0f; r.Cells[1].CellFormat.Borders.Bottom.BorderType = BorderStyle.None; r.Cells[1].CellFormat.Borders.Bottom.LineWidth = 0f; r.Cells[1].CellFormat.Borders.Top.BorderType = BorderStyle.None; r.Cells[1].CellFormat.Borders.Top.LineWidth = 0f;
Hi Andrea,
Thank you for contacting Syncfusion support.
Kindly defined the border style as “Cleared” instead of “None” which will clear the internal borders as expected. It will be working fine even in Word document to Pdf conversion also.
Code Example:
r.Cells[0].CellFormat.Borders.Left.BorderType = BorderStyle.Cleared;
r.Cells[0].CellFormat.Borders.Right.BorderType = BorderStyle.Cleared;
r.Cells[0].CellFormat.Borders.Top.BorderType = BorderStyle.Cleared;
r.Cells[0].CellFormat.Borders.Bottom.BorderType = BorderStyle.Cleared;
Regards,
Sathish