Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created January 17, 2024 17:37
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/898db3c9c14b27254d565fc36fae8027 to your computer and use it in GitHub Desktop.
Save bjoerntx/898db3c9c14b27254d565fc36fae8027 to your computer and use it in GitHub Desktop.
private void button1_Click(object sender, EventArgs e)
{
textControl1.Load("App_Data/invoice.tx", TXTextControl.StreamType.InternalUnicodeFormat);
var jsonData = System.IO.File.ReadAllText("App_Data/data.json");
using (var mailMerge = new MailMerge { TextComponent = textControl1 })
{
mailMerge.MergeJsonData(jsonData, true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment