Getting Started with Open-Xml-PowerTools DocumentAssembler

Return to the
Developer Center
DocumentAssembler.cs is a module in Open-Xml-PowerTools that enables you to generate documents from a template document.  DocumentAssembler pulls data from an XML file, populating runs of content in the generated document, populating DOCX tables from repeating data in the XML, and generating repeating content from repeating data in the XML.  It has the capability to conditionally generate content, if some specific content should be included in the generated document based on some data or condition in the XML.  The following screen-cast is a detailed tutorial in using DocumentAssembler.