ContentControl Issues

Aug 8, 2011 at 9:29 PM
Edited Aug 21, 2011 at 12:22 AM

Building the source using VS 2010 the resulting template does not load successfully. To work around the issue I created a new Office 2010 Template project and migrated all of the code to the new project. The template now loads successfully and works correctly except in the AddContent method in Contents.cs the line of code 

content = Globals.ThisDocument.ContentControls.Add(element.wdContentControl);

fails with a "NotImplemented" error. Has anyone encountered this error and if so were you able to resolve?


Aug 29, 2011 at 4:50 PM

The solution to the problem described is to not create your Visual Studio project with Word 201 set to compatability mode. If you have set Word 2010's "Save file in this format:" option to anything other than "Word document (*.docx) the template created in the Office Template project will not work as a template for Team for Word.