通過 C# 將 OFX 響應文件從 1.03 格式轉換為 2.2 格式
OFX 響應文件從 1.03 到 2.2 的轉換,無需安裝 Microsoft Office。
Aspose.Finance for .NET 是一種 API 來處理 XBRL、iXBRL 格式,開發人員可以輕鬆構建業務流程管理、財務分析和報告軟件應用程序來轉換、創建、讀取、查看和驗證 XBRL、iXBRL 和 {5 } 財務相關文件。
如何將 OFX 響應文件從 1.03 格式轉換為 2.2 格式
- 使用加載輸入文件 OfxResponseDocument 類 .1. 使用來自的 ofxVersion V2x Ofx版本枚舉 作為 Save 方法中的參數。1. 調用 保存方法 通過提供目標文件和 ofxVersion。
轉換要求
要繼續將 OFX 響應文件從 1.03 轉換為 2.2,.NET Finance API 是主要要求。
- 通過命令行將其安裝為
nuget install Aspose.Finance
或通過 Visual Studio 的包管理器控制台使用Install-Package Aspose.Finance
進行安裝。 - 或者,從 ZIP 文件中獲取離線 MSI 安裝程序或 DLL 下載 .
OFX 響應文件從 1.03 到 2.2 格式轉換的 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
// Convert OFX Response File from 1.03 to 2.2 format | |
OfxResponseDocument ofxFile = new OfxResponseDocument(srcePath + @"bankTransactionRes.sgml"); | |
ofxFile.Save(outputPath + @"bankTransactionRes.xml", OfxVersionEnum.V2x); |