.NET 4.0
I am looking for the easiest way to generate a Word document on our server.
Limitations :
- Server side
- I don’t want to install word on the server
- Data source is XML
I tried to generate a DOCX with XSLT which is fast and easy but the only way I could find to validate the generated document is to open it with Word and the only error I get when the document is not valid is “Error while opening document”. Not very useful.
Any ideas?
Thanks,
Alex
You have two options given your setup.
A third, much more crude way would be to write an HTML file and save as .doc, but that is going to cause warnings on the user side with 2007 and later.