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

# Export Method of the ComparisonResult Object

This method exports the comparison result to a file of the specified format.

## Syntax

### C++

```cpp theme={null}
HRESULT Export(
  BSTR                        FilePath,
  ComparatorExportFormatEnum  Format,
  IUnknown*                   ExportParams
);
```

### C\#

```csharp theme={null}
void Export(
  string                      FilePath,
  ComparatorExportFormatEnum  Format,
  object                      ExportParams
);
```

### Visual Basic .NET

```vb theme={null}
Sub Export( _
  FilePath As String, _
  Format As ComparatorExportFormatEnum, _
  ExportParams As Object _
)
```

## Parameters

FilePath

\[in] This variable contains the full path to the output file in [XML](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result) or DOCX format. If this file already exists, it is overwritten without prompt.

Format

\[in] This variable specifies the format of the output file. See the [ComparatorExportFormatEnum](/fine-reader/engine/api-reference/enumerations/comparatorexportformatenum) description for the supported file formats.

ExportParams

\[in] This parameter will be implemented in future releases.

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

## See also

[ComparisonResult](/fine-reader/engine/api-reference/document-comparison-objects/comparisonresult)

[Document Comparison](/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/document-comparison)
