Word documents in new format (docx) are open source documents. So, if you know the open source XML formats and syntaxes (available on Microsoft website), you will be able to generate word documents programmatically without creating Smartforms.
Thanks,
Juwin