Created
December 5, 2019 21:57
-
-
Save bjoerntx/ffa4f84a0ad391d532520058a070a579 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
textControl1.Load("template.tx", TXTextControl.StreamType.InternalUnicodeFormat); | |
string data = System.IO.File.ReadAllText("data.json"); | |
using (TXTextControl.DocumentServer.MailMerge mailMerge = new TXTextControl.DocumentServer.MailMerge()) | |
{ | |
mailMerge.TextComponent = textControl1; | |
mailMerge.RemoveEmptyImages = true; | |
mailMerge.MergeJsonData(data); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment