Hi,
I' m a beginner in wpf and I faced a problem in my project.
I have a datagirid and I want to export a selected row values to a word document a model.
if someone can help me :)
Know the answer? Post it. Somebody with the same question will find it here.
Jasna Kozelj13 pointsPosted Mar 10, 2014, 11:10 AM EDT
You can also take a look at this 3rd party mail merge toolkit for .NET which already does exactly what you need and is also pretty affordable.
Megan Foster18 pointsPosted Feb 11, 2015, 11:36 PM EST
This is often accomplished with a MergeFields (INSERT -> Quick Parts -> Field... -> MergeField).
Anyway if interested I would recommend you to check out this 3rd party .NET component for Word files. It has a really simple interface that abstracts the word's DOCX format, so you can avoid hassling and learning about that format.
If interested then here is how you can create a new Word document in C# and here is how you can execute a mail merge process in C#.