Open AnastasiV opened 7 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
Hello, I misused content controls in ms word and perhaps I was needed install last version TemplateEngine.Docx.
Thanks for your answer. Do you know what was the error in word content controls ?
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