I am using the sdk
OpenXML for recovering the mergeField on document word, but the code recovered the body of mergeField: Code
if (!string.IsNullOrEmpty(strFieldName))Code
{ //check if we have a value for this merge fieldCode
if (values.ContainsKey(strFieldName) && !string.IsNullOrEmpty(values[strFieldName]))Code
{Code
objField.Parent.Parent.Parent.ReplaceChildParagraph>(new Run(new Text(values[strFieldName])),(Paragraph) objField.Parent.Parent);Code
}Code
}

Kimberlee Lowe30 reputationPosted Jun 8, 2015, 1:13 AM EDT