### Create and Generate Document with ViewModel Source: https://github.com/egonl/sharpdocx/blob/master/README.md This snippet demonstrates how to create a document using a view model, allowing for dynamic content insertion based on the model's properties. ```csharp var document = DocumentFactory.Create("view.cs.docx", myModel); document.Generate("output.docx", myModel); ``` -------------------------------- ### Create and Generate Document Source: https://github.com/egonl/sharpdocx/blob/master/README.md This snippet shows the basic usage of SharpDocx to create a document from a view file and generate the output file. ```csharp var document = DocumentFactory.Create("view.cs.docx"); document.Generate("output.docx"); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.