Wandeln Sie XBRL in iXBRL in C# um
Contents
[
Hide
]
Aspose.Finance unterstützt die Konvertierung von XBRL-Dateien in IXBRL, indem eine Instanz von übergeben wirdOptionen speichern Klasse zumXbrlDocument.Save Methode. Um das Dokument im IXBRL-Format zu speichern, stellen Sie das einSaveOptions.SaveFormat zuSaveFormat.IXBRL.
Das folgende C#-Code-Snippet zeigt, wie XBRL in das IXBRL-Format konvertiert wird.
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); |