Created
February 16, 2021 20:45
-
-
Save aspose-com-gists/eee41e11a807b5b825656387914ecf75 to your computer and use it in GitHub Desktop.
Convert XBRL to XLSX Excel Worksheet or iXBRL Programmatically in 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
// Load input XBRL file as XML format | |
XbrlDocument document = new XbrlDocument(sourceDir + @"IdScopeContextPeriodStartAfterEnd.xml"); | |
// Set SaveOptions for output format | |
SaveOptions saveOptions = new SaveOptions(); | |
saveOptions.SaveFormat = SaveFormat.IXBRL; | |
// Convert XBRL file to iXBRL file format | |
document.Save(outputDir + @"ConvertXbrlToIXbrl_out.ixbrl", saveOptions); |
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
// Load input XBRL file | |
XbrlDocument document = new XbrlDocument(sourceDir + @"IdScopeContextPeriodStartAfterEnd.xml"); | |
// Set SaveOptions for output file | |
SaveOptions saveOptions = new SaveOptions(); | |
saveOptions.SaveFormat = SaveFormat.XLSX; | |
// Convert XBRL file to XLSX Excel Worksheet format | |
document.Save(outputDir + @"ConvertXbrlToXlsx_out.xlsx", saveOptions); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment