When I try to insert table in MS Word (a table coming from an Excel range) into a content control I get an error message that the content control cannot be inserted at the specified location. This only happens for tables where the last rows are merged. If merged rows are in the middle of the table everything works fine. Even more, if I create a table programmatically Word and add 2 rows merged & centered at the end of the table I can embed the table in a content control. This happens in Word outside of CDM.
Adding the content control programmatically with Aspose.Words does not throw an error when using MarkupLevel.Block but the content of the document gets corrupted and we cannot open the document anymore. Changing the markup level will throw the correct message from Aspose though, i.e. cannot insert.
Can you explain why the behavior is different for MarkupLevel.Block?
Internal ID: 143426
Message from MS Word:
capture.png (5.0 KB)
Sample.zip (21.9 KB)