C#を介してOFX応答ファイルを読み取る
Microsoft Officeやその他のソフトウェアをインストールせずに、OFX応答形式で財務レポートを読み取る。
OFX応答ファイルの読み方
コードスニペットの手順に従うか、拡張可能なビジネスレポート言語OFX応答ファイルを読み取るためのアプリケーションのニーズに応じてコードスニペットを拡張します。アプリケーション内に読み取り要件があることを確認してください。
- 作成 OfxResponseDocumentクラス 実例。1. 有効なOFX応答ファイルの名前をパラメーターとして渡します。1. ファイルの内部の詳細を取得するには、次のような関連するクラスを使用します。 SignonResponse
読書要件
OFX応答ドキュメントの読み取りに進むには、.NETFinanceAPIがアプリケーションに含まれる主な要件です。
- コマンドラインから
nuget install Aspose.Finance
としてインストールするか、VisualStudioのパッケージマネージャーコンソールから`` `Install-PackageAspose.Finance```を使用してインストールします。 - または、オフラインのMSIインストーラーまたはDLLをZIPファイルで取得します。 ダウンロード 。
OFX応答ファイルを読み取るための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
//open the ofx response file | |
OfxResponseDocument document = new OfxResponseDocument(@"ofx-response-file-name.xml"); | |
//get the detail information | |
SignonResponse signonResponse = document.SignonResponseMessageSetV1.SignonResponse; | |
string statusCode = signonResponse.Status.Code; |
その他の読書オプション
iXBRL (インライン拡張可能ビジネスレポート言語)