Docx library

Template based Microsoft Office Word 2007, 2010, 2013 document generation. Easily and efficiently create .docx documents using .NET without COM Interop!

Read More

Xlsx library

Generate Microsoft Office Excel 2007, 2010, 2013 documents easily and efficiently using .NET without COM Interop and without installing Office!

Read More

Xlsx Reader library

A FREE .NET library which allows you to process/read Microsoft Excel 2007, 2010, 2013 documents using native .NET data types without COM Interop!

Read More

Invoke.Docx

Download a trial version and give it a try!

Example: Quick start

In this example we will show you how to quickly create a template and merge data into that template using C#.

  1. Open Microsoft Word 2007, 2010 or 2013 and create a new word document
  2. Type in "Hello, %NAME%"
  3. Save the document
  4. Now open Visual Studio and create a new console application
  5. Add a reference to Invoke.Docx.dll
  6. Copy paste the code below into the main method
    
    var sourceFile = "c:\path\to\your\template.docx";
    var destinationFile = "c:\path\to\your\merged.docx";
     
    File.Copy(sourceFile, destinationFile, true);
     
    DocumentDataSource dds = new DocumentDataSource();
    dds["NAME"] = "World!";
     
    DocumentRenderer.ProcessDocument(destinationFile, dds);
     
    Process.Start(destinationFile);
                    
  7. Run the console application
  8. When Word opens you'll see that %NAME% was replaced with "World!"