Howto: Connect to Databases

TX Text Control can be connected to any type of database, and store formatted text in any of its text formats. You can save a complete document as a record, or load text from a database into table cells and marked text fields. Typical applications which can be created are mail merge, report generators, formatted data entry masks, and all types of business applications where documents are created from information stored in a database.

This chapter shows you how to save the contents of a Text Control to a database. The data is stored as an RTF formatted string in a text field. For an advanced sample program which shows how to use databases with tables and marked text fields, please also refer to the TX Quote Generator sample program.

The source code for this example is contained in the following directories:

Used TX Text Control controls:

Relevant API links:

The Sample Program

Saving a Record

Retrieving a Record