UNIT6-open / TemplateEngine.Docx

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

Prototype for list item not found #26

Open AnastasiV opened 7 years ago

AnastasiV commented 7 years ago

Prototype for list item 'Department, From, To, Count' not found I can't create list in document MS Word. Please, help me. How create list in MS Word? ListContent departments = new ListContent("Departments"); foreach (Department item in Conclusion.Departments) { departments.AddItem( new FieldContent("Department", item.Name), new FieldContent("From", item.From.ToShortDateString()), new FieldContent("To", item.To.ToShortDateString()), new FieldContent("Count", item.CountDays.ToString()) ); } In MS Word - http://www.imageup.ru/img88/2701576/image1.png.html

dsz-dsz-k commented 6 years ago

Hello,

I have the same kind of error in my current project using TemplateEngine.Docx.

Did you find any solution to your problem ?

Thanks in advance for your help.

David

AnastasiV commented 6 years ago

Hello, I misused content controls in ms word and perhaps I was needed install last version TemplateEngine.Docx.

dsz-dsz-k commented 6 years ago

Thanks for your answer. Do you know what was the error in word content controls ?