We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Content control lost

When running the following code on the attached source.docx document, in the resulted issue.docx document you can see that a content control is missing.

var doc = new Document(“source.docx”);
var ms = new MemoryStream();
new OoxmlSaveOptions(Aspose.Words.SaveFormat.Docx)
{Compliance = OoxmlCompliance.Iso29500_2008_Transitional});
var issue = ReadWordDocument(ms.ToArray());
private static Document ReadWordDocument(byte[] wordContent)
using (var ms = new MemoryStream(wordContent))
if (wordContent != null && wordContent.Length > 0)
return new Document(ms);
return new Document();

Thank youfiles.zip (28.3 KB)


Please also provide a comparison screenshot highlighting the problematic areas in Aspose.Words generated DOCX file and attach it here for our reference. Please point out the exact problematic places for this issue. We will then investigate the issue on our end and provide you more information. Thanks for your cooperation.

I’ve attached images where you can see the problematic area. The second paragraph in the source document is in a content control and in the issue document the content control is missing.
Capture2.PNG (52.8 KB)
Capture1.PNG (51.6 KB)
Capture.PNG (59.6 KB)


Thanks for the additional information. We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-19017. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-19017) have been fixed in this Aspose.Words for .NET 20.7 update and this Aspose.Words for Java 20.7 update.