TX Text Control ActiveX

Loading, Saving and Database Support

Topic

Documents reach TXTextControl from files, from memory and from databases. The members below load, append and save documents in files or memory, open the built-in load and save dialog boxes and exchange text with a database when the control is used as a bound control.

The Change event tells you that the contents have changed.

Properties

MemberDescription
TXTextControl.DataTextThe DataText property is used internally by Visual Basic when a TXTextControl is used as a bound control.
TXTextControl.DataTextFormatWhen using a TXTextControl as a bound control, this property specifies if the data which is exchanged with a database is text or binary data.
TXTextControl.DeviceThis property returns or sets the device for which the current TXTextControl document is formatted.
TXTextControl.LoadSaveAttributeThis property enables an application to specify several attributes that can be used in combination with the Load and Save methods.
TXTextControl.RTFSelTextThis property works much like the standard SelText property.
TXTextControl.TextReturns or sets the complete text of a TXTextControl.

Methods

MemberDescription
TXTextControl.AppendAppends text in a certain format from a file and inserts it at the end of the current document.
TXTextControl.AppendFromMemoryAppends text in a certain format from a buffer and inserts it at the end of the current document.
TXTextControl.LoadLoads text in a certain format from a file and inserts it into the TXTextControl.
TXTextControl.LoadDialogOpens the system 'Open' dialogbox and loads a document as specified.
TXTextControl.LoadFromMemoryLoads text in a certain format from a buffer and inserts it into the TXTextControl.
TXTextControl.ResetContentsDeletes the complete contents of a TXTextControl including tables, objects, marked text fields and headers and footers.
TXTextControl.SaveSaves data in a file with a specified format.
TXTextControl.SaveDialogOpens the system 'Save As' dialogbox and saves a document as specified.
TXTextControl.SaveToMemoryReturns a one-dimensional byte array containing text data in a specified format.
TXTextControl.SaveToMemoryBufferReturns a buffer containing text data in a specified format.

Events

MemberDescription
TXTextControl.ChangeIndicates that the contents of a TXTextControl have changed.