UNIT6-open / TemplateEngine.Docx

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

Question: How to make table control? #43

Closed unsafePtr closed 6 years ago

unsafePtr commented 6 years ago

Hi, I looked at the example in the repository, and certainly don't understand how to create wrapper around table. I know about the Content Controls and Design Mode. But I can't figure out which kind of control is used for table. Probably that's why data can't be render in the word document. Below is the picture about which control I am asking for. control Sorry for annoying question.

unsafePtr commented 6 years ago

After several hours of experimenting I found way how to do it. So first of all you need to create table select it and choose "Rich Text Content Control" than click to properties and enter a tag. Perhaps, there is a bug with Microsoft Word, when the cell in first column and row, already have Content Control. If you try to do described operation for the whole table, you will see the Tag for the first cell, but not for the whole table.