Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created April 5, 2016 09:35
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/51f8844481836007796c23dce2bec0a9 to your computer and use it in GitHub Desktop.
Save bjoerntx/51f8844481836007796c23dce2bec0a9 to your computer and use it in GitHub Desktop.
void mailMerge1_DataRowMerged(object sender,
TXTextControl.DocumentServer.MailMerge.DataRowMergedEventArgs e)
{
string htmlDocument = "";
using (TXTextControl.ServerTextControl tx =
new TXTextControl.ServerTextControl())
{
tx.Create();
tx.Load(e.MergedRow,
TXTextControl.BinaryStreamType.InternalUnicodeFormat);
tx.Save(out htmlDocument, TXTextControl.StringStreamType.HTMLFormat);
}
Response.Write(htmlDocument);
Response.Write("<hr />");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment