C#を介して財務報告ファイルを読む
.NETベースのアプリケーション内でXBRLおよびiXBRLを含む財務レポート形式を読み取る。
Aspose.Finance for .NET は、豊富で拡張性があり、使いやすい財務レポート処理APIの機能です。開発者は、ビジネスおよび金融ソリューション用のXBRLおよびiXBRL形式を簡単にロード、表示、または作成できます。 APIは提供します XbrlDocument クラスと InlineXbrlDocument 有効なXBRLおよびiXBRLファイルをロードするためのクラス。
XBRLドキュメントを読む
表示および分析のために既存のファイルをロードするには、XBRLファイルを読み取る必要があります。 XBLRドキュメントを読み取るために、APIは、上記の段落で説明したXbrlDocumentクラスに、入力パラメーターとして有効なXBRLファイルを提供します。他のAPIクラスを使用すると、開発者はその構造とデータを簡単に分析できます。いくつかのクラスは SchemaRefCollection 、 環境 、 単位 。
C#読み取りコードXBRLファイル
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
XbrlDocument xbrlDoc = new XbrlDocument(XbrlFilePath + @"Id-Scope-Context-Period-Start-After-End.xml"); | |
XbrlInstanceCollection xbrlInstances = xbrlDoc.XbrlInstances; | |
XbrlInstance xbrlInstance = xbrlInstances[0]; | |
List<Fact> facts = xbrlInstance.Facts; | |
SchemaRefCollection schemaRefs = xbrlInstance.SchemaRefs; | |
List<Context> contexts = xbrlInstance.Contexts; | |
List<Unit> units = xbrlInstance.Units; |
iXBRLドキュメントを読む
上記のように、既存のデータを表示、分析、または編集する必要がある場合は、iXBRLファイルを読み取る必要があります。それを読むために、APIはパラメータとして有効なiXBRLファイルを持つInlineXbrlDocumentクラスを提供します。プログラマーは次のようなクラスを利用できます InlineFact 、 環境 、 単位 そのデータと構造を表示します。
C#読み取るコードiXBRLドキュメント
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
InlineXbrlDocument ixbrlDoc = new InlineXbrlDocument(XbrlFilePath + @"account_first.html"); | |
List<InlineFact> inlineFacts = ixbrlDoc.Facts; | |
List<Context> contexts = ixbrlDoc.Contexts; | |
List<Unit> units = document.Units; |