通過 Python 查看 OFX 響應文件
無需安裝 Microsoft Office 或任何其他軟件即可查看 OFX 響應格式的財務報告。
如何查看 OFX 響應文件
遵循代碼片段中的步驟或根據您的應用程序需要對其進行增強,以查看可擴展的業務報告語言 OFX 響應文件。確保在您的應用程序中有閱讀要求。
- 創建 OfxResponseDocument 類實例。1. 將有效 OFX 響應文件的名稱作為參數傳遞。1. 要獲取文件的內部詳細信息,請使用相關類,例如 SignonResponse1. 顯示這些信息
閱讀要求
要繼續查看 OFX 響應文檔,請確保您具有以下先決條件。
- 基於 Microsoft Windows 或 Linux 的操作系統。- Python 3.5 或更高版本。- Aspose.Finance 表示您的項目中引用的 Python。
Python 代碼查看 OFX 響應文件
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 | |
document = OfxResponseDocument("ofx-response-file-name.xml") | |
#get the detail information | |
signonResponse = document.SignonResponseMessageSetV1.SignonResponse | |
string statusCode = signonResponse.Status.Code |
其他查看選項
iXBRL (內聯可擴展業務報告語言)