Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active February 15, 2016 23:01
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/f8c92ecb0cdd8dd17d81 to your computer and use it in GitHub Desktop.
Save bjoerntx/f8c92ecb0cdd8dd17d81 to your computer and use it in GitHub Desktop.
Appendix appendix = new Appendix()
{
Field1 = "Field 1 Text"
};
Data data = new Data() {
Field = "Field Text",
Appendix = appendix
};
using (MailMerge mailMerge1 = new MailMerge())
{
mailMerge1.TextComponent = textControl1;
mailMerge1.RemoveEmptyBlocks =
removeEmptyBlocksToolStripMenuItem.Checked;
mailMerge1.MergeObject(data);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment