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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Megan FosterPosted Feb 12, 2015, 4:36 AM
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#.
Jasna KozeljPosted Mar 10, 2014, 3:10 PM
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.