Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created May 4, 2022 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/3bfd142d0ab356202487e238a7a048d4 to your computer and use it in GitHub Desktop.
Save bjoerntx/3bfd142d0ab356202487e238a7a048d4 to your computer and use it in GitHub Desktop.
private void Mm_FieldMerged(object sender, MailMerge.FieldMergedEventArgs e) {
if (e.Merged == false) {
if (e.MailMergeFieldAdapter.TypeName == "MERGEFIELD") {
MergeField mf = new MergeField(e.MailMergeFieldAdapter.ApplicationField);
mf.Text = "[Field not merged!]";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment