How to Add Serialized LINQ to SQL Entities to a Word 2007 Document
- by Ryan Riley
I built a template-based document generator using the Open XML SDK (1.0), the Word 2007 Content Control Toolkit and LINQ to SQL (using the CodeSmith PLINQO templates). To do this, I serialized the LINQ to SQL entities to XML by retrieving the entity using DataLoadOptions specified in the source code.
This works great, except that to initially…