mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-05 08:06:15 +08:00
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.
This commit is contained in:
parent
6f6ffd29a7
commit
5e86e69e97
|
@ -2776,10 +2776,14 @@ ENDMETHOD.</source>
|
|||
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.
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user