> ## 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.

# LoadFrom Method of the LanguageDatabase Object

This method loads custom languages into the [LanguageDatabase](/fine-reader/engine/api-reference/language-related-objects/languagedatabase) object.

<Warning>
  Visual Components are currently only supported for Windows.
</Warning>

Custom languages must be created in ABBYY FineReader Engine for Windows using Visual Components. The procedure for creating and importing recognition languages using Visual Components is as follows:

1. Create a custom language with the required parameters in the [Language Editor](/fine-reader/engine/visual-components-reference/enumerations/menuitemenum#mi_languageeditor) dialog box of Image Viewer, Zoom Viewer, or Document Viewer. The textlang.dat, \*.amd files will be created. By default, the files are created in the [FineReader Engine data folder](/fine-reader/engine/distribution/distribution-windows/distribution-kit#finereader_engine_data_folder) (you can change the default value when loading FineReader Engine). You may then redistribute them with your custom ABBYY FineReader Engine-based application.
2. Load the created languages by a call to the ILanguageDatabase::LoadFrom method.

## Syntax

### C++

```cpp theme={null}
HRESULT LoadFrom( BSTR FolderPath );
```

### C\#

```csharp theme={null}
void LoadFrom( string FolderPath );
```

### Visual Basic .NET

```vb theme={null}
Sub LoadFrom(FolderPath As String )
```

## Parameters

FolderPath

\[in] This parameter specifies the full path to folder where the necessary files are stored. These files are textlang.dat and \*.amd.

## 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

You may initialize the [LanguageDatabase](/fine-reader/engine/api-reference/language-related-objects/languagedatabase) object before using it; otherwise, only predefined languages will be available through it.

## See also

[LanguageDatabase](/fine-reader/engine/api-reference/language-related-objects/languagedatabase)
