|
| 1 | +--- |
| 2 | +id: convert-to-finance-with-advanced-options |
| 3 | +url: conversion/net/convert-to-finance-with-advanced-options |
| 4 | +title: Convert to Finance formats with advanced options |
| 5 | +weight: 18 |
| 6 | +description: "Learn about FinanceConvertOptions class for financial data formats (XBRL, iXBRL, OFX) in GroupDocs.Conversion for .NET." |
| 7 | +keywords: Convert to XBRL, Convert to iXBRL, Convert to OFX, Financial reporting conversion, XBRL conversion |
| 8 | +productName: GroupDocs.Conversion for .NET |
| 9 | +hideChildren: False |
| 10 | +toc: True |
| 11 | +--- |
| 12 | + |
| 13 | +GroupDocs.Conversion provides the [FinanceConvertOptions](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/financeconvertoptions) class to specify financial data format conversion settings. This class implements [IPagedConvertOptions](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/ipagedconvertoptions) for page selection support. |
| 14 | + |
| 15 | +## Supported Finance Formats |
| 16 | + |
| 17 | +The following financial data formats are recognized: |
| 18 | + |
| 19 | +| Format | Extension | Description | Use Case | |
| 20 | +|--------|-----------|-------------|----------| |
| 21 | +| **XBRL** | .xbrl | eXtensible Business Reporting Language | Financial reporting, regulatory compliance | |
| 22 | +| **iXBRL** | .ixbrl | Inline XBRL (HTML + XBRL) | Human-readable and machine-readable financial reports | |
| 23 | +| **OFX** | .ofx | Open Financial Exchange | Banking data, financial transactions | |
| 24 | + |
| 25 | +## Properties |
| 26 | + |
| 27 | +**[Format](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/convertoptions-1/format/)** - Specifies the desired financial file format. Available options are: *Xbrl, IXbrl, Ofx*. |
| 28 | + |
| 29 | +**[PageNumber](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/ipagedconvertoptions/pagenumber)** - Specifies the starting page number for conversion. |
| 30 | + |
| 31 | +**[PagesCount](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/ipagedconvertoptions/pagescount)** - Specifies the number of pages to convert. |
| 32 | + |
| 33 | +## API Structure |
| 34 | + |
| 35 | +The following example shows the API structure for FinanceConvertOptions: |
| 36 | + |
| 37 | +```csharp |
| 38 | +using GroupDocs.Conversion.Options.Convert; |
| 39 | +using GroupDocs.Conversion.FileTypes; |
| 40 | + |
| 41 | +// Create options object |
| 42 | +FinanceConvertOptions options = new FinanceConvertOptions |
| 43 | +{ |
| 44 | + Format = FinanceFileType.Xbrl, |
| 45 | + PageNumber = 1, // Starting page (for multi-page sources) |
| 46 | + PagesCount = 10 // Number of pages to process |
| 47 | +}; |
| 48 | +``` |
| 49 | + |
| 50 | +## Converting Between Finance Formats |
| 51 | + |
| 52 | +You can convert between XBRL and iXBRL formats. This allows you to transform between human-readable inline XBRL and standard XBRL format. |
| 53 | + |
| 54 | +### Convert XBRL to iXBRL |
| 55 | + |
| 56 | +```csharp |
| 57 | +using GroupDocs.Conversion; |
| 58 | +using GroupDocs.Conversion.Options.Convert; |
| 59 | +using GroupDocs.Conversion.FileTypes; |
| 60 | + |
| 61 | +// Load the source XBRL file |
| 62 | +using (Converter converter = new Converter("financial-report.xbrl")) |
| 63 | +{ |
| 64 | + // Configure iXBRL convert options |
| 65 | + FinanceConvertOptions options = new FinanceConvertOptions |
| 66 | + { |
| 67 | + Format = FinanceFileType.IXbrl |
| 68 | + }; |
| 69 | + |
| 70 | + // Convert and save |
| 71 | + converter.Convert("financial-report.ixbrl", options); |
| 72 | +} |
| 73 | +``` |
| 74 | + |
| 75 | +### Convert iXBRL to XBRL |
| 76 | + |
| 77 | +```csharp |
| 78 | +using GroupDocs.Conversion; |
| 79 | +using GroupDocs.Conversion.Options.Convert; |
| 80 | +using GroupDocs.Conversion.FileTypes; |
| 81 | + |
| 82 | +// Load the source iXBRL file |
| 83 | +using (Converter converter = new Converter("inline-report.ixbrl")) |
| 84 | +{ |
| 85 | + // Configure XBRL convert options |
| 86 | + FinanceConvertOptions options = new FinanceConvertOptions |
| 87 | + { |
| 88 | + Format = FinanceFileType.Xbrl |
| 89 | + }; |
| 90 | + |
| 91 | + // Convert and save |
| 92 | + converter.Convert("inline-report.xbrl", options); |
| 93 | +} |
| 94 | +``` |
| 95 | + |
| 96 | +## Format Selection |
| 97 | + |
| 98 | +You can specify different financial formats using the Format property: |
| 99 | + |
| 100 | +### XBRL Format |
| 101 | + |
| 102 | +XBRL (eXtensible Business Reporting Language) is the international standard for digital business reporting: |
| 103 | + |
| 104 | +```csharp |
| 105 | +using GroupDocs.Conversion.Options.Convert; |
| 106 | +using GroupDocs.Conversion.FileTypes; |
| 107 | + |
| 108 | +FinanceConvertOptions xbrlOptions = new FinanceConvertOptions |
| 109 | +{ |
| 110 | + Format = FinanceFileType.Xbrl |
| 111 | +}; |
| 112 | +``` |
| 113 | + |
| 114 | +### iXBRL Format |
| 115 | + |
| 116 | +iXBRL (Inline XBRL) combines human-readable HTML with machine-readable XBRL data: |
| 117 | + |
| 118 | +```csharp |
| 119 | +FinanceConvertOptions ixbrlOptions = new FinanceConvertOptions |
| 120 | +{ |
| 121 | + Format = FinanceFileType.IXbrl |
| 122 | +}; |
| 123 | +``` |
| 124 | + |
| 125 | +### OFX Format |
| 126 | + |
| 127 | +OFX (Open Financial Exchange) is used for financial data exchange between institutions and applications: |
| 128 | + |
| 129 | +```csharp |
| 130 | +FinanceConvertOptions ofxOptions = new FinanceConvertOptions |
| 131 | +{ |
| 132 | + Format = FinanceFileType.Ofx |
| 133 | +}; |
| 134 | +``` |
| 135 | + |
| 136 | +## Format Support Notes |
| 137 | + |
| 138 | +**Supported conversions:** |
| 139 | +- XBRL ↔ iXBRL (bidirectional conversion between standard and inline XBRL) |
| 140 | + |
| 141 | +**Not supported:** |
| 142 | +- Conversion from standard document formats (PDF, Word, Excel) to financial formats |
| 143 | +- Conversion from financial formats to other formats (PDF, images, etc.) |
| 144 | +- OFX conversions to/from XBRL or iXBRL |
| 145 | + |
| 146 | +Financial formats like XBRL require highly specific data structures, taxonomies, and metadata that are not present in general documents. |
| 147 | + |
| 148 | +## More Resources |
| 149 | + |
| 150 | +- [API Reference: FinanceConvertOptions](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/financeconvertoptions) |
| 151 | +- [API Reference: FinanceFileType](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.filetypes/financefiletype) |
| 152 | +- [Supported File Formats]({{< ref "conversion/net/getting-started/supported-document-formats.md" >}}) |
| 153 | +- [Common Conversion Options]({{< ref "conversion/net/developer-guide/advanced-usage/converting/common-conversion-options/_index.md" >}}) |
0 commit comments