Created
December 15, 2022 14:35
-
-
Save bjoerntx/2824aa61598cd29b18f6523bdea0bccb 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
using (TXTextControl.ServerTextControl tx = new TXTextControl.ServerTextControl()) { | |
tx.Create(); | |
tx.Load("patient_history.tx", TXTextControl.StreamType.InternalUnicodeFormat); | |
using (TXTextControl.DocumentServer.MailMerge mailMerge = new TXTextControl.DocumentServer.MailMerge()) { | |
mailMerge.TextComponent = tx; | |
mailMerge.FormFieldMergeType = TXTextControl.DocumentServer.FormFieldMergeType.Preselect; | |
string jsonData = File.ReadAllText("data.json"); | |
mailMerge.MergeJsonData(jsonData); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment