I have been applying the lastest builds to my development code base as they come out. It appears the following code in my tables is no longer working. Is this a break-change? I am writing this for a faster response than reviewing all the past release notes.
Here is the code that used to bold the text and underline in a table cell. newRow is a clone of a row int the current table. "builder" is a DocumentBuilder of the current Document. The code now produces a table with the cell text not bold and not underlined.
builder.Bold = true; builder.Underline = Underline.Single; oCell = newRow.Cells[0]; PrepCellForWrite(ref oCell); builder.MoveTo(oCell.FirstParagraph); builder.Write("Bold Me and Underline me");
private void PrepCellForWrite(ref Aspose.Words.Tables.Cell newCell) { if (newCell.Paragraphs != null) { while (newCell.Paragraphs.Count > 1) { newCell.LastParagraph.Remove(); } // Remove content of first paragraph if (newCell.FirstParagraph.HasChildNodes) { newCell.FirstParagraph.ChildNodes.Clear(); } // Move DocumentBuilder cursor to the cell } }private void PrepCellForWrite(ref Aspose.Words.Tables.Cell newCell) { if (newCell.Paragraphs != null) { while (newCell.Paragraphs.Count > 1) { newCell.LastParagraph.Remove(); } // Remove content of first paragraph if (newCell.FirstParagraph.HasChildNodes) { newCell.FirstParagraph.ChildNodes.Clear(); } // Move DocumentBuilder cursor to the cell } }Thanks for any help or new code to replace the old "Bold" and "Underline" properties of the DocumentBuilder.Bryan