Using sections into StructuredDocumentTag

Hi,


My objective is to concatenate multiple Word documents into in single one.

I want each of the source documents to be inserted into a separatate StructuredDocumentTag in the result document.

I manage to do this by using a private methode called “InsertDocumentBU” (see attached file)

My problem is the following : some of the source files may contain multiple columns, sections, etc… and I want this presentation to be kept in the result file. How would you proceed ?

Thank you by advance.

Ludo

Hi Ludo,


Thanks for your inquiry. Unfortunately you can’t store a section break inside StructuredDocumentTag (SDT) element using Aspose.Words. This is a limitation of Aspose.Words DOM. As you might have noticed that inside Document we have a Section node, Section node stores a Body node and only inside that node we can store a block-level SDT node. So during processing document, we have to eliminate SDTs that contain text with section breaks in order to maintain model integrity. We apologize for your inconvenience.

Best regards,