Connecting 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.

The source code for this sample program is contained in the Samples\vb6\DataAccess sample source directory.

The Sample Program

Saving a Record

Retrieving a Record