Christopher Krause

Christopher Krause

  • NA
  • 24
  • 45.8k

Using database bound fields in TX Text Control .NET

Aug 9 2011 8:09 AM
In a mail merge process, the direction of data is one-way. But when using the visual controls of TX Text Control to complete a form or to create an invoice where the data must be updated in a database, two-way data direction is required.

To keep the TX Text Control internal TextFields or ApplicationFields as flexible as possible, they do not contain a DataSource property. However, the update process is very easy:

1. In the TextFieldChanged event, the DataSet is updated.
2. Then all fields are updated with the new changed DataSet.

This way ensures that other fields with the same name will be updated with the actual changed text. The following screencast illustrates a sample application that shows this update process.

Animation

Test it on your own and download the C# project below.

Download: tx_bound_fields.zip


About TX Text Control:

TX Text Control was originally released in 1991, since then more than 50,000 copies have been sold. Starting off as a single, small DLL, TX Text Control has made its way through 16-bit DLL and VBX versions to today's Enterprise edition with its .NET and ActiveX components. The recent addition to the family, TX Text Control .NET Server, offers all of TX Text Control advanced word processing functionality in an easy-to-use server-side .NET component. Customers benefit from these years of experience, large user base, and at the same time, appreciate developing with a mature, reliable product.

Contact Informations:

[email protected]

North & South America:
Phone: +1 704-370-0110
Phone: +1 877-462-4772 (toll free)

Europe:
Phone: +49 (0)421 42 70 67 10

Asia Pacific:
Phone: +886 2-2797-8508