UNIT6-open / TemplateEngine.Docx

Smart docx template engine for .NET
Other
406 stars 137 forks source link

Repetating Contents #33

Open vetonshala opened 7 years ago

vetonshala commented 7 years ago

Hi! When I put fields inside repeating contents, templateEngine doesn't fill value of Fields Contents inside of content. Can you please show example how to fill fields inside repeating contents?

quisitive-crogers commented 7 years ago

I finally figured this out. In order to repeat content, you just put your content placeholders inside a Rich Content control. Do not use the Repeat Section Content Control as it will not work. The template engine takes care of the process of making copies of the items.