Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET Efficient way to generate WORD Doc - Server Side

.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

like image 266
2d1b Avatar asked Dec 04 '25 15:12

2d1b


1 Answers

Keeping far from office automation at server side is really a good idea (since even Microsoft does not support this scenario).

I have never used, but this lib looks promising. Have you tried it?

like image 98
Vagaus Avatar answered Dec 07 '25 05:12

Vagaus