I want to know the name of the merge fields define in a Word document, how
can I do that?
foreach (Field myField in myWordDoc.Field s)
{
}
I cannot find property of myField that gives me the name.
For example, I have 2 merge fields in my Word document, <<CompanyName>> ,
<<Secretary>>
I want to insert 'MTech' into the field <<CompanyName>a nd 'Mary Jones'
into <<Secretary>> .
I need to map the string literals into the field so I need to know the name
or label of the merge fields.
can I do that?
foreach (Field myField in myWordDoc.Field s)
{
}
I cannot find property of myField that gives me the name.
For example, I have 2 merge fields in my Word document, <<CompanyName>> ,
<<Secretary>>
I want to insert 'MTech' into the field <<CompanyName>a nd 'Mary Jones'
into <<Secretary>> .
I need to map the string literals into the field so I need to know the name
or label of the merge fields.