转换 OFX 中的请求和响应文件 C# API
Contents
[
Hide
]
Aspose.Finance for .NET 支持在1.03和2.2格式之间转换OFX请求和响应文件。下面的 C# 示例演示了使用 API 将 OFX 请求和响应文件从 1.03 格式转换为 2.2 格式。
将 OFX 请求文件从 1.03 格式转换为 .NET 中的 2.2 格式
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
// For complete examples and data files, please go to https://github.com/aspose-finance/Aspose.Finance-for-.NET | |
// Working directories | |
string sourceDir = RunExamples.Get_SourceDirectory(); | |
string outputDir = RunExamples.Get_OutputDirectory(); | |
OfxRequestDocument document = new OfxRequestDocument(sourceDir + @"bankTransactionReq.sgml"); | |
document.Save(outputDir + @"bankTransactionReq.xml", OfxVersionEnum.V2x); |
将 OFX 响应文件从 1.03 格式转换为 .NET 中的 2.2 格式
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
// For complete examples and data files, please go to https://github.com/aspose-finance/Aspose.Finance-for-.NET | |
// Working directories | |
string sourceDir = RunExamples.Get_SourceDirectory(); | |
string outputDir = RunExamples.Get_OutputDirectory(); | |
OfxResponseDocument document = new OfxResponseDocument(sourceDir + @"bankTransactionRes.sgml"); | |
document.Save(outputDir + @"bankTransactionRes.xml", OfxVersionEnum.V2x); |