Created
December 16, 2023 14:29
-
-
Save bjoerntx/2ffd95d0fbde5c077eb82fa72bb671c5 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 (MailMerge mm = new MailMerge()) | |
{ | |
mm.TextComponent = tx; | |
mm.RemoveEmptyFields = false; | |
// load json data | |
string json = System.IO.File.ReadAllText("App_Data/data.json"); | |
// merge data | |
mm.MergeJsonData(json, true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment