Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active May 4, 2022 07:54
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/5dbeaa583a24a29a32c2cdd764936dcf to your computer and use it in GitHub Desktop.
Save bjoerntx/5dbeaa583a24a29a32c2cdd764936dcf to your computer and use it in GitHub Desktop.
string jsonData = System.IO.File.ReadAllText("data.json");
using (MailMerge mm = new MailMerge() { TextComponent = textControl1 }) {
mm.RemoveEmptyFields = false;
mm.MergeJsonData(jsonData);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment