OpenXML
mergeField
if (!string.IsNullOrEmpty(strFieldName))
{ //check if we have a value for this merge field
if (values.ContainsKey(strFieldName) && !string.IsNullOrEmpty(values[strFieldName]))
{
objField.Parent.Parent.Parent.ReplaceChild<Paragraph>(new Run(new Text(values[strFieldName])),(Paragraph) objField.Parent.Parent);
}