TE Edit Control Win32 / Win64 Help
Product page

TerSetOutputFormat

Set the format of the output data.

BOOL TerSetOutputFormat(hWnd,format)
HWND hWnd;The handle of the window to be accessed
int format;The output format can be set to one of the following:
SAVE_TER:Save in the TER native format. This format is deprecated. Please use the RTF format instead.
SAVE_TEXT:Save in the text format
SAVE_TEXT_LINES:Save in the text format with line breaks.
SAVE_RTF:Save in the Rich Text Format
SAVE_DOCXSave in the DOCX format
SAVE_HTML:Save in the HTML format. This option is available only when HTML Add-on is installed.
SAVE_UTEXT:Save in the Unicode text format. (not available in the 16 bit product)
SAVE_DEFAULT:Save in the format of the original document

Description: This function is used to change the data format of the document when saved. The original output format is specified by the calling application when the editor window is created.

Return Value: This function returns TRUE if successful.