Click here to Skip to main content
15,896,329 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hey,
want to creat an office word addin to get values from a word document with already merged fields.
whats wrong?

What I have tried:

C#
Word.Document doc = Globals.ThisAddIn.Application.ActiveDocument;
string sfileName_Document = doc.Name;
var vtnr = doc.MailMerge.DataSource.DataFields["vnr"].Value;
Posted
Updated 5-Jan-22 10:46am
v2
Comments
Richard Deeming 6-Jan-22 4:34am    
"What's wrong?"
You tell us.

You've given us a brief description of what you're trying to do, and shown a small part of your code. But you haven't told us what the problem is, not what you have tried or where you are stuck.
Maciej Los 6-Jan-22 14:14pm    
The MailMarge fields are gone after merging...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900