XBRL'i Python'de Excel XLSX'e dönüştürün

Contents
[ ]

Aspose.Finance, XBRL dosyalarının bir örneğini geçirerek XLSX’e dönüştürmeyi destekler.Seçenekleri Kaydet sınıfaXbrlDocument.save yöntem. Belgeyi XLSX biçiminde kaydetmek için,SaveOptions.save_format ileSaveFormat.XLSX.

Aşağıdaki Python kod parçacığı, XBRL’in XLSX’e nasıl dönüştürüldüğünü gösterir.

//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)