C#を介してXBRLをSECxlsxレポートに変換します
XBRLからSECxlsxは、.NETベースのアプリケーション内で他のソフトウェアを必要とせずに変換を報告します。
Aspose.Finance for .NET はXBRL、iXBRL形式を処理するためのAPIであり、開発者はビジネスプロセス管理、財務分析、およびレポート作成ソフトウェアアプリケーションを簡単に構築して、XBRLおよびiXBRLの財務関連を変換、作成、読み取り、表示、および検証できます。ファイル。
XBRLをSECxlsxレポートに変換する方法
- を使用して入力XBRLファイルをロードします XbrlDocumentクラス 。2.設定 SaveOptions 出力ファイルの場合は、 SaveFormat.SEC_XLSX_REPORT 。 3.に電話します 保存方法 ターゲットファイルと関連するSaveOptionsをパラメータとして提供します。
変換要件
XBRLからSECxlsxレポートへの変換を続行するには、.NETFinanceAPIが主な要件です。コマンドラインからnuget install Aspose.Finance
としてインストールするか、VisualStudioのパッケージマネージャーコンソールから`` `Install-PackageAspose.Finance```を使用してインストールします。
または、オフラインのMSIインストーラーまたはDLLをZIPファイルで取得します。 ダウンロード 。
XBRLをSECxlsxレポートファイルに変換するためのC#ソースコード
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Enable cache service, this service will cache schema and link base file, and use the local file directly in the next load | |
LocalCacheService.EnableService(@"D:\xbrl\cache"); | |
XbrlDocument document = new XbrlDocument(@"xbrl_file_name.xml"); | |
// Set save options | |
SaveOptions options = new SaveOptions(); | |
options.SaveFormat = SaveFormat.SEC_XLSX_REPORT; | |
// Save file to SEC XLSX report format | |
document.Save(@"sec_report.xlsx", options); |