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

Free Support Forum - aspose.com

Preserve Section Content Controls when Loading & Saving to DOCX using C# .NET | Insert Section Break in Structured Document Tag


We use Aspose.Words to load and save Word documents.

We have a document (A custom forms) with the content control enabled to prevent the user from accidentally change the form content.

However, all the content controls are lost once it’s saved.

We have tested with the latest Aspose Words 20.6 and it doesn’t work.

Could you please check?

Thank you.

documents_content_control.zip (290.9 KB)


We have converted your “original_with_content_control.docx” document to DOCX format by using MS Word 2019 and the latest (20.6) version of Aspose.Words for .NET on our end and attached the DOCX files here for your reference:

Here is the C# code that we used on our end to produce above 20.6.docx:

Document doc = new Document("E:\\documents_content_control\\original_with_content_control.docx");

Do you see the same problem in 20.6.docx? If yes, then please create and attach a comparison screenshot which highlights the problematic areas in this Aspose.Words 20.6 generated DOCX (with respect to original document). We will then investigate the issue further and provide you more information.

Hi @awais.hafeez

Yes, we see the issue in Aspose.Words 20.6 saving to .docx.
We use the same code to load the save the document.

I have attached the screenshots.

This is the original document / Microsoft Word converted document.
The content control is enabled in the highlighted area. The user won’t be able to change the content.

This is the original document / Microsoft Word converted document.
If you right-click on the content control area, you will see “Remove Content Control”, if you click that, content control will be removed and you will be able to edit the content.

This is the original document / Microsoft Word converted document.
If you put the cursor at “Location”, the menu above has been disabled.

This is the Aspose 20.6 converted document.
If you put the cursor at “Location”. The content is editable. The content control is lost after conversion.

document_screenshots.zip (324.0 KB)



We managed to reproduce the same problem on our end and have logged it in our issue tracking system with ID WORDSNET-20602. We will further look into the details of this problem and keep you updated on the status of the linked issue. We apologize for your inconvenience.

Hi there,

Can I please have an update for this ticket?

Thank you.

Kind Regards


I am afraid, the implementation of this issue has been postponed till a later date. There are no estimates available at the moment. We will be sure to inform you via this thread as soon as this issue will be resolved in future. We apologize for your inconvenience.

Hi @awais.hafeez

WORDSNET-20602 ---- Status : Closed

Just want to check if there is any update for this? Has this been fixed?
The status is closed now.

Kind Regards


Yes, we have good news for you i.e. WORDSNET-20602 has now been resolved. The fix of this issue will be included in the next 20.9 version of Aspose.Words. We will inform you via this thread as soon as the next version containing the fix of this issue will be released at the start of next month (September).

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