TX Text Control ActiveX Documentation

Working with Files

Text Control uses 8 different file formats:

  • Its own, native format, which you would normally use to store data in document files.
  • The Rich Text Format (RTF), which can be used to exchange formatted text with other applications.
  • HTML
  • XML
  • Microsoft Word format (*.docx)
  • Microsoft Word 97-2003 format (*.doc)
  • Unformatted text in ANSI or Unicode format.
  • Adobe PDF. This file format can only be used for exporting your documents.

Using RTF, HTML, Word or unformatted text is very easy: Just specify the format you want to use as a parameter of the Load or Save method.

Using RTF, HTML, Word and unformatted text, you can only read or write the contents of a single Text Control from or to a file. Using the native file format, however, you can write a file header prior to saving the Text Control data, or even write the contents of several Text Controls to one file.

The Mail Merge sample program shows you how to write the contents of Text Control and other data to a single file. The MDIDemo sample shows you how to write a file header prior to the Text Control's data and how to use RTF, HTML, Word and unformatted text.

 
 
 

Products

Support

Downloads

Corporate

Buy Now