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

# OpenProject Method of the Engine Object

This method allows you to open a FlexiCapture project. The project folder must contain the project file (.fcproj file) and a folder containing Document Definitions.

If the project was created in an earlier version of ABBYY FlexiCapture SDK or ABBYY FlexiCapture, you will need to update it first. Call the [**UpdateProject**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/engine-updateproject.md) method of the [**Engine**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/engine.md) object. However, you will not be able to work with a project created in later versions of these products.

> [!WARNING]
>
> * You must keep the reference to the [**Project**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/project.md) object when any references to the objects of the project are used. If the reference to the **Project** object is released and its subobjects are still in use, errors may occur.
> * An open project cannot be deleted.

## Syntax

```vb Visual Basic .NET theme={null}
Function OpenProject(Path As String) As Project
```

```cpp C++ theme={null}
HRESULT OpenProject(
  BSTR       Path,
  IProject** Result
);
```

## Parameters

**Path**

\[in] This variable contains the full path to the project file (.fcproj file). For example "D:\TestProject\TestProject.fcproj".

**Result**

\[out, retval] A pointer to the **IProject\*** pointer variable that receives the interface pointer to the resulting [**Project**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/project.md) object. Must not be NULL.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## Samples

> [accordion] C++ (COM) code
>
> ```cpp theme={null}
> // Global ABBYY FlexiCapture SDK Engine object.
> FCEngine::IEnginePtr Engine;
> ...
> // Open the project
> FCEngine::IProjectPtr project = Engine->OpenProject("D:\\TestProject\\TestProject.fcproj");
> ...
> ```

This method is used in the following code samples: [Hello](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/samples.md#hello), [FieldsExtractionTraining](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/samples.md#fieldsextractiontraining).

## See also

[**Engine**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/engine.md)

[**Project**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/project.md)
