As advised in the KB, using Automation on web servers
is not recommended
As well as licensing considerations, you are likely to run into permissions issues and various other problems - all highlighted in that article.
You can use the
Open XML SDK[
^] to create docx files
Download is here
[
^]
Otherwise, there are other ways.....html + css article here
Dynamically generate a MS Word document using HTML & CSS[
^]
In general though, stay away from COM automation on web servers - it's not recommended, not supported and will cause you nothing but problems