تحويل XBRL إلى Excel XLSX في Python
Contents
[
Hide
]
يدعم Aspose.Finance تحويل ملفات XBRL إلى XLSX عن طريق تمرير مثيل منSaveOptions فئة لXbrlDocument.save طريقة. لحفظ المستند بتنسيق XLSX ، اضبط ملفSaveOptions.save_format إلىحفظ تنسيق XLSX.
يوضح مقتطف الشفرة Python التالي كيفية تحويل XBRL إلى XLSX.
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
//Enable cache service, this service will cache schema and link base file, and use the local file directly in the next load | |
LocalCacheService.enable_service("D:\\xbrl\\cache") | |
document = XbrlDocument(sourcePath + "Id-Scope-Context-Period-Start-After-End.xml") | |
# Set save options | |
Opts = SaveOptions() | |
Opts.save_format = SaveFormat.XLSX | |
// Save file to XLSX format | |
document.save(outputPath + "Converted-Xbrl-To-Xlsx_out.xlsx", Opts) |