> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# LoadProfile Method of the Engine Object

This method loads a [user profile](/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles#user_profiles) file. For more information about working with profiles, see the [Working with Profiles](/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles) section of this Help file.

## Syntax

### C++

```cpp theme={null}
HRESULT LoadProfile( BSTR FileName );
```

### C\#

```csharp theme={null}
void LoadProfile( string FileName );
```

### Visual Basic .NET

```vb theme={null}
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](/fine-reader/engine/api-reference/return-codes).

## Remarks

This method call cleans the current recognition session (i.e., the [IEngine::CleanRecognizerSession](/fine-reader/engine/api-reference/engine-object-iengine-interface/supplementary-methods/cleanrecognizersession-method) method is called automatically).

## Samples

<Accordion title="C# code">
  ```csharp theme={null}
  // 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
  ```
</Accordion>

The method is used in the following demo tools: [Engine Predefined Processing Profiles](/fine-reader/engine/guided-tour/samples#engine_predefined_processing_profiles).

## See also

[Engine](/fine-reader/engine/api-reference/engine-object-iengine-interface)

[Working with Profiles](/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles)
