Geeks With Blogs
Ben Adler's Development Posting solutions as I find them June 2014 Entries
C# Replace Macros in Word Document .docx
One of my clients had users downloading a word document to edit and print out. Some of these fields in the Word Document can be pre-populated with data.There is a dll called DocX available here: in mind, this only works with .docx, not .doc file formatesSample code:private void GetDocument() { //Get parameters string FirstName = "Benjamin"; string LastName = "Adler"; string Username = "Badler"; //Get template string TemplateFileName = @"C:\temp\test.docx"; DocX template ......

Posted On Friday, June 13, 2014 2:31 PM

Copyright © BenAdler | Powered by: