Dear support,
we use the latest version of Asopose Words for .Net.
I want to replace a cell with a content control while maintaining the original cell properties.
I have the following code:
StructuredDocumentTag tag = new StructuredDocumentTag(doc, SdtType.RichText, MarkupLevel.Cell);
cellToRemove.ParentNode.InsertBefore(tag, cell);
cellToRemove.Remove();
Now the format of the original cell is obiously gone.
The new StructuredDocumentTag already has a cell inside, so I’m not sure how to proceed. Can I copy the CellFormat from one cell to another?
Or shouldn’t I remove the cell and replace the cell inside the StructuredDocumentTag?
It would be nice if you could give me some sample code.
Thanks!