|
18 | 18 | */ |
19 | 19 | package net.sourceforge.squirrel_sql.fw.gui.action.fileexport; |
20 | 20 |
|
| 21 | +import java.io.File; |
| 22 | +import java.io.FileOutputStream; |
| 23 | +import java.sql.Types; |
| 24 | +import java.text.NumberFormat; |
| 25 | +import java.util.Calendar; |
| 26 | +import java.util.Date; |
| 27 | +import java.util.HashMap; |
| 28 | +import java.util.Iterator; |
| 29 | + |
21 | 30 | import net.sourceforge.squirrel_sql.fw.datasetviewer.ColumnDisplayDefinition; |
22 | 31 | import net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.CellComponentFactory; |
23 | 32 | import net.sourceforge.squirrel_sql.fw.sql.ProgressAbortCallback; |
|
34 | 43 | import org.apache.poi.xssf.streaming.SXSSFWorkbook; |
35 | 44 | import org.apache.poi.xssf.usermodel.XSSFWorkbook; |
36 | 45 |
|
37 | | -import java.io.File; |
38 | | -import java.io.FileOutputStream; |
39 | | -import java.sql.Types; |
40 | | -import java.text.NumberFormat; |
41 | | -import java.util.Calendar; |
42 | | -import java.util.Date; |
43 | | -import java.util.HashMap; |
44 | | -import java.util.Iterator; |
45 | | - |
46 | 46 | /** |
47 | 47 | * Exports {@link IExportData} to a Excel file. |
48 | 48 | * <b>Note:</b> This class is the result of a refactoring task. The code was |
@@ -88,7 +88,7 @@ public long write(ExportDataInfoList exportDataInfoList, TableExportPreferences |
88 | 88 |
|
89 | 89 | if(prefs.isExcelAutoFilter()) |
90 | 90 | { |
91 | | - _sheet.setAutoFilter(new CellRangeAddress(0, 0, 0, exportDataInfo.getExportData().getColumnCount())); |
| 91 | + _sheet.setAutoFilter(new CellRangeAddress(0, 0, 0, exportDataInfo.getExportData().getColumnCount() - 1)); |
92 | 92 | } |
93 | 93 | } |
94 | 94 | _fileExportService.progress(s_stringMgr.getString("DataExportExcelWriter.finishedLoading", NumberFormat.getInstance().format(rowsCount))); |
|
0 commit comments