Can you suggest a library to generate dynamic documents (DOCX, PDF, XLSX) for C#? I would like to start from a Office document or template and merge an XML data model to get my final document.

2 Answers 2


Docmosis can merge XML data into a DocX document and optionally create PDF. From C# you would use the Cloud or Tornado options of Docmosis and make REST calls with your XML data. Docmosis does not currently create XLSX type of documents. Please note I work for Docmosis.

I hope that helps.


Syncfusion provides file parsing libraries for Excel - Essential XlsIO , Word - Essential DocIO, PDF - Essential PDF and other formats. You can use these libraries to generate dynamic documents.

Can be used with just .NET on a computer. No need to have Excel/Word/Acrobat installed.

Essential XlsIO

The whole suite of controls and libraries is available for free through the community license program if you qualify (less than 1 million USD in revenue). Note: I work for Syncfusion.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.