...
1. Create a new .DOCX file. Save it as template.docx.
Info |
---|
In the sample code, the completed template file is located in templates/template.docx |
...
There are several options for WordTemplate.Save
including: save to disk, save to memory stream, stream back to the client inline, and stream back to the client as an attachment. In this case, we're streaming the document back to the client as an attachment.
...