I am having problems finding an easy way to perform text replacement using Aspose.Words. Specifically I want to replace the contents of a table cell by a text string, preserving any existing formatting.
What is the best way to do this?
I thought I would be able to use cell.Range.Text = "My Text", but the Range.Text property is readonly :(
I tried clearing the Cells ChildNodes and adding a new paragraph, but this causes formatting of the cell to be lost.
In Word Automation I can achieve this easily, e.g.:
wordApp.Selection.TypeText "My Text"
but I can't find a simple way to do it using Aspose.
I'm also a bit confused that the Text property of the Bookmark object is read/write, but for a Range object it is readonly.