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

Free Support Forum - aspose.com

Section breaks are adjusted after adding document

I’ve noticed that when adding a word document with a continuous section break, the section break itself and the previous section break is changed.

Attached is a zip file with an example project which will generate 2 files, output_OK.doc and output_NOK.doc. In the output_NOK.doc the last document that is added has a continuous section break but after adding this last document, the section break changes to a next page section break and the previous section break changes from next page to continuous. In the output_OK.doc the last document doesn’t have a section break and it doesn’t display this behaviour.

When I added this last document (with a section break) directly via word I didn’t have this issue.
I’m using Aspose.Words (491.4 KB)
output_NOK.docx (56.7 KB)
output_OK.docx (54.9 KB)

We have tested the scenario and managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET - 23180. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-23180) have been fixed in this Aspose.Words for .NET 22.1 update also available on NuGet.