通過 C# 查看 OFX 請求文件
無需安裝 Microsoft Office 或任何其他軟件即可查看 OFX 請求格式的財務報告。
如何查看 OFX 請求文件
按照代碼段中的步驟或根據您的應用程序需要對其進行增強,以查看可擴展的業務報告語言 OFX 請求文件。確保在您的應用程序中有閱讀要求。
- 創造 OfxRequestDocument 類 實例。1. 將有效 OFX 請求文件的名稱作為參數傳遞。1. 要獲取文件的內部細節,請使用相關類,例如 登錄請求 1. 顯示這些信息
閱讀要求
要繼續查看 OFX 請求文檔,.NET Finance API 是包含在應用程序中的主要要求。
- 通過命令行將其安裝為
nuget install Aspose.Finance
或通過 Visual Studio 的包管理器控制台使用Install-Package Aspose.Finance
進行安裝。 - 或者,從 ZIP 文件中獲取離線 MSI 安裝程序或 DLL 下載 .
用於查看 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 request document | |
OfxRequestDocument document = new OfxRequestDocument(@"ofx-request-file-name.sgml"); | |
//get the detail information | |
SignonRequest signonRequest = document.SignonRequestMessageSetV1.SignonRequest; | |
string userId = signonRequest.UserId; |
其他查看選項
iXBRL (內聯可擴展業務報告語言)