Hi
I'm trying to сlear the document (original doc) using a foreach loop on every cell, paragraph and run, because the ClearFormatting function clears everything I need.
The question is how to get rid of red fragments in the attached document (after the loop doc)?
My foreach loop (same for the paragraphs and runs):
Aspose.Words.Document doc = new Aspose.Words.Document(bin.ContentFilePath); doc.AcceptAllRevisions(); foreach(Cell cell in doc.GetChildNodes(NodeType.Cell, true)) { // cell.CellFormat.Shading.ClearFormatting(); cell.CellFormat.Shading.BackgroundPatternColor = System.Drawing.Color.White; Console.WriteLine(cell.CellFormat.Shading.BackgroundPatternColor.R.ToString() + " " + cell.CellFormat.Shading.BackgroundPatternColor.G.ToString() + " " + cell.CellFormat.Shading.BackgroundPatternColor.B.ToString()); }
Thanks!