Products Technologies Demo Docs Blog Support Company

Preview: JSON Support in MailMerge Version X14 (24.0)

MailMerge X14 (24.0) adds a Merge method overload that accepts JSON strings as a data source alongside DataTable and DataSet inputs. JSON data supports nested objects for relational structures and Base64-encoded images. Web.TextControl also gains JSON merge field population.

Preview: JSON Support in MailMerge Version X14 (24.0)

JSON, the acronym for JavaScript Object Notation, is a data format used in modern, web-based applications. It became the de facto standard format to transfer data in web-based applications.

In the current version of MailMerge, the Merge method accepts a DataTable and a DataSet. The MergeObject and MergeObjects methods merge an object or collections of objects into a loaded template.

In version X14 (no release date known yet), the MailMerge class accepts a JSON object as the data source:

void MailMerge.MergeJsonData(string json, bool append)

The JSON strings should contain an array of objects, very similar to XML files serialized from a DataSet. Relations are built based on nested objects in the hierarchy of the JSON string. The JSON object can contain strings, integers and even images encoded as Base64 strings.

According to this new data source type support, the HTML5 based editor Web.TextControl will also accept a JSON string to fill the merge field drop-downs.

Stay tuned for more!

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

Reporting

The Text Control Reporting Framework combines powerful reporting features with an easy-to-use, MS Word compatible word processor. Users can create documents and templates using ordinary Microsoft Word skills. The Reporting Framework is included in all .NET based TX Text Control products including ASP.NET, Windows Forms and WPF.

See Reporting products

Related Posts

ReportingWindows FormsMail Merge

MailMerge: Conditional Rendering of Merge Blocks

TX Text Control X16 provides two approaches to conditionally render merge blocks within MailMerge templates. Setting RemoveEmptyBlocks removes blocks when child data is absent, while…


ReportingWindows FormsMail Merge

DataSourceManager: Using the Ready-to-Use Reporting Dialog Boxes

The TX Text Control DocumentServer namespace ships with seven ready-to-use reporting dialogs for data selection tasks: chart data relations, filter and sort, database connection, data source…


ReportingMail MergeRelease

Merge Blocks in X16: Filtering, Sorting and Conditional Rendering

TX Text Control X16 introduces programmatic merge block insertion through the DataSourceManager API, supporting inline filtering, sorting, and conditional rendering. Block merging conditions…


ReportingMail MergeRelease

MailMerge Improvements in X14: Event Arguments and JSON Data Sources

TX Text Control X14 MailMerge introduces the MergeJsonData method for merging JSON strings directly into reporting templates. New event arguments expose DataRowAdapter, DataTableAdapter, and…


ActiveXASP.NETReporting

TX Text Control 32.0 Has Been Released

We are pleased to announce the immediate availability of TX Text Control 32.0 for all platforms including ASP.NET, Windows Forms, WPF and ActiveX.

Share on this blog post on: