From 5e86e69e97a5b92643d5c0ee9fa616dfaf950f48 Mon Sep 17 00:00:00 2001 From: oliver-huetkoeper Date: Mon, 18 May 2015 21:14:56 +0200 Subject: [PATCH] Style of remaining columns with no values When setting a style for all columns the reader only reads this style for filled columns. The style of the remaining columns is dropped. Example: You activate border lines for all cells, but you fill only the first three columns. After reading and writing it with ABAP2XLSX, only the first three columns have border lines. This is fixed by setting the default style here. --- ZA2X/CLAS/ZCL_EXCEL_READER_2007.slnk | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ZA2X/CLAS/ZCL_EXCEL_READER_2007.slnk b/ZA2X/CLAS/ZCL_EXCEL_READER_2007.slnk index 3338bcf..899e3e4 100644 --- a/ZA2X/CLAS/ZCL_EXCEL_READER_2007.slnk +++ b/ZA2X/CLAS/ZCL_EXCEL_READER_2007.slnk @@ -2776,10 +2776,14 @@ ENDMETHOD. ENDIF. * issue #367 - hide columns from - IF ls_column-max = 16384 " Max = very right column - AND ls_column-hidden = 1 " all hidden - AND ls_column-min > 0. - io_worksheet->zif_excel_sheet_properties~hide_columns_from = zcl_excel_common=>convert_column2alpha( ls_column-min ). + IF ls_column-max = zcl_excel_common=>c_excel_sheet_max_col " Max = very right column + IF ls_column-hidden = 1 " all hidden + AND ls_column-min > 0. + io_worksheet->zif_excel_sheet_properties~hide_columns_from = zcl_excel_common=>convert_column2alpha( ls_column-min ). + ELSEIF ls_column-style > ''. +* Set default style for remaining columns + io_worksheet->zif_excel_sheet_properties~set_style( dummy_zexcel_cell_style ). + ENDIF. ENDIF.