diff --git a/dataframe-excel/src/main/kotlin/org/jetbrains/kotlinx/dataframe/io/xlsx.kt b/dataframe-excel/src/main/kotlin/org/jetbrains/kotlinx/dataframe/io/xlsx.kt index 63f1f862f2..116afea065 100644 --- a/dataframe-excel/src/main/kotlin/org/jetbrains/kotlinx/dataframe/io/xlsx.kt +++ b/dataframe-excel/src/main/kotlin/org/jetbrains/kotlinx/dataframe/io/xlsx.kt @@ -131,7 +131,8 @@ public fun DataFrame.Companion.readExcel( nameRepairStrategy: NameRepairStrategy = NameRepairStrategy.CHECK_UNIQUE, ): AnyFrame { setWorkbookTempDirectory() - val wb = WorkbookFactory.create(file) + @Suppress("ktlint:standard:comment-wrapping") + val wb = WorkbookFactory.create(file, /* password = */ null, /* readOnly = */ true) return wb.use { readExcel(it, sheetName, skipRows, columns, stringColumns?.toFormattingOptions(), rowsCount, nameRepairStrategy) }