Text Data File Format .TXT Export Automation Options

 

When the program is driven from an automation script, an options string can be specified in the script that acts as the export options dialogs do in the program. The string consists of comma-separated parameters, which specify the behavior of the various export options.

 

Parameter

Type

Description

Delimiter

comma, tab, space, semicolon

The delimiter is the separator between columns.

Filter

string

TXT

ModuleID

integer

Numeric ID of the module to be exported.

 

0=entire viewer window

2=default

TextQualifier

doublequote, singlequote, none

The text qualifier is the mark around text, keeping text in one cell.

 

Example

This example shows how to export an TXT file with the various options.

 

CommandApi.Construct("Export")

CommandApi.Option("GuiEnabled", "False")

CommandApi.Option("ClearOptions", "False")

CommandApi.Option("Filter", "txt")

CommandApi.Option("Options", "Delimiter=comma; TextQualifier=doublequote")

CommandApi.Option("Path", "C:/Path/To/Export/file.txt")

CommandApi.Option("PersistOptions", "True")

CommandApi.Option("ModuleId", "2")

CommandApi.Do()

 

Used by: Export

 

 

See Also

Automation Model