I would like to add a new Repeating section content control programmatically - in a Word 2013 document - using Aspose.Words. I am trying to create a Word 2013 template programmatically using aspose.words.
The "SdtType" enumeration do not support any repeating content control.. Please provide me a sample of how a new repeating section control can be added.
Thanks for your inquiry. Could you please attach your expected Word document here for our reference. We will investigate the structure of your expected document as to how you want your final output be generated like. You can create expected document using Microsoft Word. We will then provide you code to achieve the same using Aspose.Words.
Please find attached a Word 2013 document - where I have created a table with repeating section content control. .. These are the steps that I followed:
- Created a new table with 2 columns
- Added a 'Plain Text' content control in each column (named Cell1 and Cell2)
- Added a 'Repeating Section' content control - that wraps these plain text content controls.
Now, if this document is used as a 'template', the user can add multiple rows to it and Cell1 and Cell2 content controls will repeat for every row.
Please let me know, how this can be achieved using Aspose.Words
Thanks for the additional information. We have logged this requirement in our issue tracking system as WORDSNET-12439. Our product team will further look into the details of this problem and we will keep you updated on the status of this issue. We apologize for your inconvenience.