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

# CreateInvoiceProject Method

This method creates a new FlexiCapture invoice project. The predefined countries and Document Definition are filled in automatically, and you can do additional tuning as needed afterwards.

## Syntax

```vb Visual Basic .NET theme={null}
Function CreateInvoiceProject( _
    ProjectPath As String, _
    ProjectType As InvoiceProjectTypeEnum _
) As Project
```

```cpp C++ theme={null}
HRESULT CreateInvoiceProject(
    BSTR                   ProjectPath,
    InvoiceProjectTypeEnum ProjectType,
    IProject**             Result
);
```

## Parameters

**ProjectPath**

\[in] The full path to the folder where the project file should be created. We recommend creating a separate folder for each project; it will contain the project file (.fcproj) and the folders with Document Definitions.

**ProjectType**

\[in] This variable of the [**InvoiceProjectTypeEnum**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/invoiceprojecttypeenum.md) type specifies the project type, that is, the countries invoices from which will be processed.

**Result**

\[out, retval] A pointer to the **IProject\*** pointer variable that receives the interface pointer of the [**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

This method is used in the following code samples: [Invoices Processing and Training](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/samples.md#invoicesprocessingandtraining).

## See also

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