SaveToTextFile Method of the PlainText Object

This method saves the recognized text from the PlainText object into a text file with the specified encoding.



HRESULT SaveToTextFile(
  BSTR                 Path,
  TextEncodingTypeEnum encodingType,
  CodePageEnum         codePageEnum


void SaveToTextFile(
  string               Path,
  TextEncodingTypeEnum encodingType,
  CodePageEnum         codePageEnum

Visual Basic .NET

Sub SaveToTextFile( _
  Path As String, _
  encodingType As TextEncodingTypeEnum, _
  codePageEnum As CodePageEnum _


[in] A string containing the full path to the file where the text should be saved. If this file does not exist, it will be created. If it exists, it will be overwritten without prompt.
[in] Specifies the text encoding type. It may be set to one of the constants from the TextEncodingTypeEnum enumeration.
[in] Specifies the code page. It may be set to one of the constants from the CodePageEnum enumeration. The value of this parameter is taken into account only when the encodingType parameter has value TET_Simple (exported text is not Unicode). If this property does not specify any code page (CP_Null), the code page is selected automatically.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

See also


24.03.2023 8:51:52

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.