Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created March 20, 2018 21:19
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/f715635fdbffa103fe23f0116be3145b to your computer and use it in GitHub Desktop.
Save bjoerntx/f715635fdbffa103fe23f0116be3145b to your computer and use it in GitHub Desktop.
IList<byte[]> documents;
using (TXTextControl.ServerTextControl tx = new TXTextControl.ServerTextControl())
{
tx.Create();
byte[] bTemplate = File.ReadAllBytes("template.tx");
TXTextControl.DocumentServer.DataSources.DataSourceManager dsManager =
new TXTextControl.DocumentServer.DataSources.DataSourceManager();
dsManager.LoadXmlFile("sample_db.xml");
documents = dsManager.Merge(bTemplate, textControl1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment