在 C# 中将 XBRL 转换为 iXBRL
Contents
[
Hide
]
Aspose.Finance 支持通过传递一个实例将 XBRL 文件转换为 IXBRL保存选项类到XbrlDocument.保存方法。要将文档保存为 IXBRL 格式,请设置保存选项.保存格式至保存格式.IXBRL.
以下 C# 代码片段演示了如何将 XBRL 转换为 IXBRL 格式。
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(); | |
XbrlDocument document = new XbrlDocument(sourceDir + @"IdScopeContextPeriodStartAfterEnd.xml"); | |
// Set save options | |
SaveOptions saveOptions = new SaveOptions(); | |
saveOptions.SaveFormat = SaveFormat.IXBRL; | |
// Save file to XLSX format | |
document.Save(outputDir + @"ConvertXbrlToIXbrl_out.ixbrl", saveOptions); |