Validating Mail Merge Fields

I’ve downloaded the samples and all looks good. One feature I need is the ability to validate the merge fields. For example, the merge field “FirstName”, could possibly be entered or created as “FrstNme”, by accident. So when a document is loaded into the system, we want to validate the merge fields are the fields we are expecting.
How can I loop through all the merge fields in a document?
Thanks,
Bernie

Found it…

doc.MailMerge.GetFieldNames();

Hello

It is perfect, that you already found the way to resolve the problem.
Best regards,