DataExport/DLL Interface

DataExport/DLL provides a simple, uniform API for output of more than 40 data formats. This API allows you to query the DLL for supported formats, create a new file, output data and close the file with only a few function calls.

Querying the DLL for Supported Formats

The DataExport/DLL interface provides two functions which allow you to query the component for the number and types of formats it currently supports. These functions are intended for dynamic construction of dialogue boxes and other communication with your program.
DXGetNumTypes
Returns the number of supported output types
DXEnumTypes
Returns output type information for a File Type, including format name, file extension, type of file format and whether a Sheet or Table name is required

Cell-by-Cell Output Methods

There are ten API methods used in a Cell-by-Cell output implementation. These functions allow you to open a file, write data to it and close the file:
DXInitTrans
Initialize an output file
DXDefData
Define a data format for each column/field
DXPutInt
Write a 2 byte signed integer to buffer
DXPutLong
Write a 4 byte signed integer to buffer
DXPutSingle
Write a 4 byte single precision IEEE Real to buffer
DXPutDouble
Write a 8 byte double precision IEEE Real to buffer
DXPutString
Write a zero delimited string to buffer
DXWriteBuffer
Write buffer to output file
DXClearBuffer
Clear data from buffer
DXCloseFile
Close output file

File-Based Translation Functions

There is only a single method for initialization of a File-Based Translation. This function is similar to the command line call of DataImport:
DXLaunchEngine
Run translation with specified parameters

BackTop

Spalding Software, Inc. - For more information, email: info@spaldingsoftware.com