diff --git a/src/groovy/pl/touk/excel/export/XlsxExporter.groovy b/src/groovy/pl/touk/excel/export/XlsxExporter.groovy index b11baf3..3290c79 100644 --- a/src/groovy/pl/touk/excel/export/XlsxExporter.groovy +++ b/src/groovy/pl/touk/excel/export/XlsxExporter.groovy @@ -38,7 +38,9 @@ class XlsxExporter implements SheetManipulator { this.workbook = createOrLoadWorkbook(destinationFileNameWithPath) setUp(workbook) } - + XlsxExporter(File f) { + this(f.path) + } private XSSFWorkbook createOrLoadWorkbook(String fileNameWithPath) { if(new File(fileNameWithPath).exists()) { zipPackage = OPCPackage.open(fileNameWithPath); @@ -139,4 +141,4 @@ class XlsxExporter implements SheetManipulator { } } } -} \ No newline at end of file +}