Build your First Report
This interactive tutorial shows how to create your first report from preparing data, creating a template to merging them together.
1. Prepare your Data
Text Control's MailMerge class can be used with many different data sources including JSON, XML, business objects or DataSets. In this sample, a JSON string is used as a data source that can be manipulated for testing. Play with it to see the differences.
Change the JSON content or structure and see how the drop-down buttons in the template editor (step 2) reflect these changes.
If you are done manipulating the data, move over to step 2.
2. Create your Template
Based on the above JSON data, the drop-down lists in the ribbon Reporting tab are filled with available field and merge block names.
Use the Insert Merge Field Insert Merge Block drop-down buttons to insert merge elements.
Insert other elements that should be part of your first template such as headers and footers.
When you are happy with your template, click the green button Merge Template to merge the above data into the template.
Please wait while I am preparing your document...
3. Create Document
In the final step, the data is merged into the template using the MailMerge class and loaded into the DocumentViewer.
© 2020 Copyright Text Control GmbH. All rights reserved.