Skip to main content
Skip table of contents

p$TDV:SMPAPI:EtTxInit


p$TDV:SMPAPI:EtTxInit

Initialization of text generation for all kinds of output documents

Depending on the parameter mode this function can be used tocreate output documents. The document can be created based on the standard document template Normal.dot or the format of the first text component can be applied. This is the (recommended) standard setting. Here, the first text component is directly loaded and all other text components are inserted herein. Thereby all settings from the first component are adopted, e.g. the document template, page layout, page headers, format templates etc.edit existing documents. The defined document is called and can be extended arbitrarily.Please note:

If the document generation is called in mode=0 after inserting the first text component the parameter substitution has to be called manually using p$TDV:SMPAPI:EtTxAktV.

Please keep in mind that the symbol "\" has to be used twice for paths in the file name ("\\").

Syntax:

p$TDV:SMPAPI:EtTxInit( Drive, Directory, Document, Mode )

 

Argument

Type

Meaning

 

Drive

String

Drive or main directory of the document. In the case of an empty string ('') the ePOS data path will be chosen.

 

Directory

String

Directory name of the output document. An empty string can be transferred.

 

Document

String

Name of the document (without file extension)

 

Mode

Integer

0: Generate a new document whereas the document formatting is extracted from the first text component (document and format templates). This is the standard setting
1: Generate a new document through the template Normal.dot
2: Edit an existing document
3: Generate a text component

Result:

-

 

Example:

Initialization of the offer document with individual settings from the component "OffHead.doc":

p$TDV:SMPAPI:WkTx_Ini( 'wkhead', 'wkpos', ID )
p$TDV:SMPAPI:EtTxInit( 'c:\\Offers', '', wkhead.Title, 0 )
p$TDV:SMPAPI:EtTxBast( 1, 'OffHead' )
p$TDV:SMPAPI:EtTxAktV()

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.