IncludeText fields can be used to merge external references into a mail merge template using the reporting engine . External documents of type DOC, DOCX, RTF and TX can be referenced and are automatically included during the merge process.
In case the reference ends with .xlsx, the file is loaded into a temporary . The Bookmark property of the IncludeTextField is used to define the sheet name in the Excel document. After the document is loaded successfully into ServerTextControl, it is exported in the internal TX Text Control format and returned to the property.
The following screen video shows this in action:
Download this sample from our GitHub repository and try this on your own.
Download and Fork This Sample on GitHub
We proudly host our sample code on github.com/TextControl.
Please fork and contribute.
Requirements for This Sample
- Visual Studio 2017 or better
- TX Text Control .NET for Windows Forms X17 (trial sufficient)