f$txtinit
f$txtinit
Initialize document generation. This function creates the document, inserts the first text template, activates a log file if desired, and specifies the document type for creating the document. The following is accepted as a document type: RTF, TEXT, HTML, XML. The RTF type is currently treated specially. The specific header lines are adjusted and special characters masked. RTF text templates can be created in Microsoft Word or Wordpad if desired. As Word saves a lot of information, it is recommended to create the first template that manages the document’s presentation with Word, and all other templates with Wordpad.
Experienced users can also create the templates with another text editor.
Syntax: | DocNo = f$txtinit(DocName, TemplName, Documenttype, LOGFILE) | ||
| Argument | Type | Meaning |
| DocName | String | Document name including path. If a path is not entered, TDV_DATA is used. |
| TemplName | String | Template name including path. If a path is not entered, TDV_DATA\ettext\forms is used. |
| Documenttype | String | Document type : 'RTF', 'TEXT', 'HTML', 'XML' or '' |
| LOGFILE | String | Name of a log file including path or '' without log file |
Result: | Integer | >= 0 is for identifying the document | |