Sample code for creating a DOCX file

Doug Mahugh had a post a couple days ago where he provides some basic code that will generate a WordprocessingML document:

Some folks have been asking about examples of how to create a basic document with the required relationships, content types, and parts. Doug had actually blogged on Monday that he would put up examples for all three document types, and this is the first of those examples.

Doug is very active on the site, and it's great to see him pulling some examples together like this. Thanks Doug!