Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created April 29, 2024 13:08
Show Gist options
  • Save bjoerntx/2c4a3e39c83e6231462103c82efaeccc to your computer and use it in GitHub Desktop.
Save bjoerntx/2c4a3e39c83e6231462103c82efaeccc to your computer and use it in GitHub Desktop.
string jsonData = File.ReadAllText("data.json");
using (MailMerge mailMerge = new MailMerge())
{
mailMerge.TextComponent = textControl1;
mailMerge.MergeJsonData(jsonData);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment