Open XML, SharePoint, and Office
Video of use of Document Generation Example
I have completed a rough first version of this document generation system that is driven by C# code that you write in content controls in a Word document. As an intro, I’ve recorded a small screen-cast that shows the doc gen system in action.
This post is the tenth in a series of blog posts on generating Open XML documents. Here is the complete list: Generating Open XML WordprocessingML Documents Blog Post Series
V1 of the code that enables this approach to document generation is less than 400 lines of code, so this counts as simply an example program. This shows the value of using functional programming, meta programming, and Open XML to reduce program size.
I have to note at this point – the example program contains almost no error handling. If you mistype code in the content controls, you will encounter interesting compiler errors after loading the generated program. In the long run, I expect to resolve these issues in an interesting way. While at this point, I’m just playing around with document generation ideas, in the future, I want to build a system that is easy and convenient for non-developers to use.
I plan on posting this code sometime early next week, as well as a video that explains in more detail how the doc gen system works.