C#を介してXBRLをSEChtmlレポートに変換します
XBRLからSEChtmlへの変換は、.NETベースのアプリケーション内で他のソフトウェアを必要とせずに変換されます。
Aspose.Finance for .NET はXBRL、iXBRL形式を処理するためのAPIであり、開発者はビジネスプロセス管理、財務分析、およびレポート作成ソフトウェアアプリケーションを簡単に構築して、XBRLおよびiXBRLの財務関連を変換、作成、読み取り、表示、および検証できます。ファイル。
XBRLをSEChtmlレポートに変換する方法
- を使用して入力XBRLファイルをロードします XbrlDocumentクラス 。2.設定 SaveOptions 出力ファイルの場合は、 SaveFormat.SEC_HTML_REPORT 。 3.に電話します 保存方法 ターゲットファイルと関連するSaveOptionsをパラメータとして提供します。
変換要件
XBRLからSEChtmlレポートへの変換を続行するには、.NETFinanceAPIが主な要件です。コマンドラインからnuget install Aspose.Finance
としてインストールするか、VisualStudioのパッケージマネージャーコンソールから`` `Install-PackageAspose.Finance```を使用してインストールします。
または、オフラインのMSIインストーラーまたはDLLをZIPファイルで取得します。 ダウンロード 。
XBRLをSEChtmlレポートファイルに変換するための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_HTML_REPORT; | |
// Save file to SEC Html report format | |
document.Save(@"sec_report.xlsx", options); |