# OdfConversionReport

Feature mapping report for one explicit conversion between OpenDocument and another Office format.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OdfConversionReport.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Conversion/OdfConversionReport.cs#L7)

**Base**

`OfficeConversionReport`

**Modifiers**

sealed

Feature mapping report for one explicit conversion between OpenDocument and another Office format.

## Inheritance

- OfficeConversionReport
- OdfConversionReport

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Convert OpenDocument to and from Office](/docs/open-document/convert-office/) Guide
  
  Convert ODT to DOCX, ODS to XLSX and ODP to PPTX and back, and read the per-feature report of what was mapped, approximated or lost.

## Usage

Explore 7 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 3

- Property [OdfConversionLossException.Report](/api/open-document/officeimo-opendocument-odfconversionlossexception/#property-report)
- Method [OdfConversionReport.Add](/api/open-document/officeimo-opendocument-odfconversionreport/#method-add-string-officeimo-opendocument-odfconversionmappingstatus-int32-string)
- Property [OdfConversionResult<T>.Report](/api/open-document/officeimo-opendocument-odfconversionresult/#property-report)

### Accepted by parameters 4

- Constructor [OdfConversionLossException.OdfConversionLossException](/api/open-document/officeimo-opendocument-odfconversionlossexception/#constructor-ctor-officeimo-opendocument-odfconversionreport-string) parameter `report`
- Constructor [OdfConversionResult<T>.OdfConversionResult](/api/open-document/officeimo-opendocument-odfconversionresult/#constructor-ctor-officeimo-opendocument-odfconversionreport) parameter `report`
- Method [OdfImageExportDiagnostics.Attach](/api/open-document/officeimo-opendocument-odfimageexportdiagnostics/#method-attach-officeimo-drawing-officeimageexportresult-officeimo-opendocument-odfconversionreport) parameter `report`
- Method [OdfImageExportDiagnostics.FromConversionReport](/api/open-document/officeimo-opendocument-odfimageexportdiagnostics/#method-fromconversionreport-officeimo-opendocument-odfconversionreport) parameter `report`

Filter members 

Show inherited

## Constructors

`public OdfConversionReport(string sourceFormat, string targetFormat)` [#](#constructor-ctor-string-string)

[OdfConversionReport.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Conversion/OdfConversionReport.cs#L7)

Creates an empty conversion report.

Parameters

**sourceFormat string required**

**targetFormat string required**

## Methods

`public OdfConversionReport Add(string feature, OdfConversionMappingStatus status, int count = 1, string? message = null)` [#](#method-add-string-officeimo-opendocument-odfconversionmappingstatus-int32-string)

[OdfConversionReport.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Conversion/OdfConversionReport.cs#L66)

Adds one feature-level result and returns this report.

Parameters

**feature string required**

**status OfficeIMO.OpenDocument.OdfConversionMappingStatus required**

**count int = 1 optional**

**message string? = null optional**

Returns

`OdfConversionReport`

`public void ApplyPolicy(OdfConversionLossPolicy policy)` [#](#method-applypolicy-officeimo-opendocument-odfconversionlosspolicy)

[OdfConversionReport.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Conversion/OdfConversionReport.cs#L57)

Applies an explicit conversion loss policy.

Parameters

**policy OfficeIMO.OpenDocument.OdfConversionLossPolicy required**

`public IReadOnlyList<OdfConversionMapping> ForFeature(string feature)` [#](#method-forfeature-string)

[OdfConversionReport.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Conversion/OdfConversionReport.cs#L72)

Returns all results for one stable feature identifier.

Parameters

**feature string required**

Returns

`IReadOnlyList<OdfConversionMapping>`

`public void RequireNoSkippedOrUnsupported()` [#](#method-requirenoskippedorunsupported)

[OdfConversionReport.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Conversion/OdfConversionReport.cs#L48)

Throws when any feature was skipped or unsupported; approximations are accepted.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public void ThrowIfLoss()` [#](#method-throwifloss)

Inherited from OfficeConversionReport

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string SourceFormat { get; }` [#](#property-sourceformat)

[OdfConversionReport.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Conversion/OdfConversionReport.cs#L18)

Source format identifier.

`public string TargetFormat { get; }` [#](#property-targetformat)

[OdfConversionReport.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Conversion/OdfConversionReport.cs#L20)

Target format identifier.

`public IReadOnlyList<OdfConversionMapping> Mappings { get; }` [#](#property-mappings)

[OdfConversionReport.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Conversion/OdfConversionReport.cs#L22)

Feature results in the order reported by the adapter.

`public override bool HasLoss { get; }` [#](#property-hasloss)

[OdfConversionReport.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Conversion/OdfConversionReport.cs#L38)

True when at least one feature was approximated, skipped, or unsupported.

`public bool HasSkippedOrUnsupported { get; }` [#](#property-hasskippedorunsupported)

[OdfConversionReport.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Conversion/OdfConversionReport.cs#L40)

True when at least one feature was skipped or unsupported.

## Inherited Properties

`public string Source { get; }` [#](#property-source)

Inherited from OfficeConversionReport

`public string Target { get; }` [#](#property-target)

Inherited from OfficeConversionReport

`public string? OutputPath { get; }` [#](#property-outputpath)

Inherited from OfficeConversionReport

`public long ItemsWritten { get; }` [#](#property-itemswritten)

Inherited from OfficeConversionReport

`public TimeSpan Elapsed { get; }` [#](#property-elapsed)

Inherited from OfficeConversionReport

`public IReadOnlyList<OfficeDiagnostic> Diagnostics { get; }` [#](#property-diagnostics)

Inherited from OfficeConversionReport

<!-- PowerForge markdown artifact sha256:6797EDFBEF30677989F744107ADC33FC379C2EBDDC122C41DA2EDD72CF1A6B6A -->
