Index

C/C++ Functions

txTextSaveToFile

DT_SLONG txTextSaveToFile(DT_TXDOC text_doc, DT_ID_UBYTE file_type, const DT_CHAR* file_name)

Short Description: For debugging purposes

This function saves the text document to a file in the native uncompressed PowerDoc format.

Parameters

ParameterDescription

text_doc

Handle of the associated text document instance.

file_type

Must be set to 0.

file_name

Supplies the location of the output file to be created. The file will be in the native uncompressed PowerDoc format. If the specified output file already exists, it will be overwritten.

Return Value

If the function was successful, the return value is 1. Otherwise, the function returns a negative number.

 

Index