How to automate Microsoft word 2003 from WPF?
问题 I have a WPF window( using c# as code behind) that has some text fields. What I want is, when the user presses the print button I want to take the information on these fields and use Microsoft word 2003 template. The template has some blank fields to be filled with these info coming from WPF widow. How would I automate word to do this? 回答1: This is easy: Add a COM reference to the the "Microsoft Word 11.0 Object Library" (or use the Microsoft.Office.Interop.Word assembly). You may have to in