自动将 TX Text Control 表单字段映射到 JSON 数据

6月 8, 2026
简化数据处理,并提高您 C# 应用程序在处理表单字段时的效率。

继续用英语阅读:

TX Text Control .NET Server for ASP.NET is a server side component for Web applications, or services. It is a fully programmable ASP.NET word processor engine that offers an extensive palette of word processing features. Using TX Text Control .NET Server, programmers can develop server side, end user applications that generate documents on-the-fly, using data from databases, binary files (Microsoft Word DOC and DOCX), ASCII files (XML, RTF, HTML) and image data (JPG, PNG, BMP, TIF, GIF, WMF). Documents can be created, modified and edited in a browser or printed in batch processes.

In this blog post from Text Control, Bjoern Meyer demonstrates how to automatically map TX Text Control form fields to JSON data in a .NET C# application, even when the names are not an exact match. It uses fuzzy matching and is especially useful in cases where templates and data sources evolve independently. The included sample project takes you through the following steps:

  • Opening a TX Text Control template document
  • Reading the available JSON field names
  • Iterating over the document form fields
  • Finding the best JSON field match for each form field
  • Renaming the form field using FormFieldCollection
  • Saving the mapped template as a new TX document

Read the complete blog and learn how to automatically prepare templates for JSOPN-based document workflows.

TX Text Control .NET Server for ASP.NET is licensed per developer and is available as a Perpetual License with a 12 month support and maintenance subscription. Run time licenses are required for the deployment to production servers. See our TX Text Control .NET Server for ASP.NET licensing page for full details.

For more information, visit our TX Text Control .NET Server for ASP.NET product page.