通过 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 (内联可扩展业务报告语言)