Created
December 3, 2024 12:59
-
-
Save bjoerntx/a9fffdc9e4a3ab3a5e81c78bdad7006a to your computer and use it in GitHub Desktop.
This file contains hidden or 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); | |
CellFilterInstructions cellFilterInstructions = new CellFilterInstructions() { | |
CompareValue = 10, | |
Operator = CellFilterInstructions.RelationalOperator.GreaterThan, | |
TrueColor = Color.Green, | |
FalseColor = Color.Red | |
}; | |
textControl1.Tables[1].Cells[2,2].Name = | |
JsonConvert.SerializeObject(cellFilterInstructions); | |
MailMerge mailMerge = new MailMerge(); | |
mailMerge.TextComponent = textControl1; | |
mailMerge.FieldMerged += MailMerge_FieldMerged; | |
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