Skip to main content
This method loads a user profile file. For more information about working with profiles, see the Working with Profiles section of this Help file.

Syntax

C++

HRESULT LoadProfile( BSTR FileName );

C#

void LoadProfile( string FileName );

Visual Basic .NET

Sub LoadProfile(FileName As String)

Parameters

FileName [in] This variable contains the path to the profile file. You can specify either a full path to the file, or a path relative to the current directory. If this variable contains an empty string, standard default values for all newly created objects will be used.

Return values

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

Remarks

This method call cleans the current recognition session (i.e., the IEngine::CleanRecognizerSession method is called automatically).

Samples

// Load Engine
FREngine.IEngine engine;
...
string profileName = ""; // Path to a user profile file
// Load a user profile
if( System.IO.File.Exists( profileName ) )
{
 engineLoader.Engine.LoadProfile( profileName );
}
// Continue document processing
The method is used in the following demo tools: Engine Predefined Processing Profiles.

See also

Engine Working with Profiles