Geeks With Blogs
Ben Adler's Development Posting solutions as I find them DocX
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: http://docx.codeplex.com/Keep 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: GeeksWithBlogs.net