Convierta XBRL a Excel XLSX en C#
Contents
[
Hide
]
Aspose.Finance admite la conversión de archivos XBRL a XLSX pasando una instancia delGuardarOpciones clase a laXbrlDocument.Guardar método. Para guardar el documento en formato XLSX, configure elSaveOptions.SaveFormat aGuardarFormato.XLSX.
El siguiente fragmento de código C# demuestra cómo convertir XBRL a XLSX.
This file contains hidden or 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.XLSX; | |
// Save file to XLSX format | |
document.Save(outputDir + @"ConvertXbrlToXlsx_out.xlsx", saveOptions); |