Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created February 17, 2022 21:19
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/4c3d24ad0059666b9d0f7f052fc18c0c to your computer and use it in GitHub Desktop.
Save bjoerntx/4c3d24ad0059666b9d0f7f052fc18c0c to your computer and use it in GitHub Desktop.
string data = System.IO.File.ReadAllText("data.json");
using (MailMerge mm = new MailMerge()) {
mm.TextComponent = textControl1;
mm.MergeJsonData(data);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment