Created
March 20, 2018 21:19
-
-
Save bjoerntx/f715635fdbffa103fe23f0116be3145b 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
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