Open XML, SharePoint, and Office
As I was contemplating the process of generating the C# code that will do the document generation, I was drawn to the idea of using text templates, also known as T4. Text templates are a .NET code generation technology. I have never used text templates before, so I spent a few hours researching them to [...]
I’ve made great progress on this example to generate WordprocessingML documents from a template that is driven from C# that is written inside of content controls. It took me longer than I thought it would, but I’ve been mostly on vacation this past week, so had to fit in coding around lots of other activities. [...]
Discusses how I similated ‘virtual extension methods’ to write code to generate code to create an arbitrary XML tree.
Presents code that generates C# code to create an arbitrary XML document.
Discusses enhancments that enable the template designer to write infrastructure code for the document generation process. Also discusses how the document generation process will work.