mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-05 13:46:17 +08:00
Merge branch 'main' into patch-gradient-type-2
This commit is contained in:
commit
e470d39ace
|
@ -1304,6 +1304,8 @@ CLASS zcl_excel_worksheet IMPLEMENTATION.
|
|||
ld_flag_italic TYPE abap_bool VALUE abap_false,
|
||||
ld_date TYPE d,
|
||||
ld_date_char TYPE c LENGTH 50,
|
||||
ld_time TYPE t,
|
||||
ld_time_char TYPE c LENGTH 20,
|
||||
ld_font_height TYPE zcl_excel_font=>ty_font_height VALUE zcl_excel_font=>lc_default_font_height,
|
||||
ld_font_name TYPE zexcel_style_font_name VALUE zcl_excel_font=>lc_default_font_name.
|
||||
|
||||
|
@ -1349,8 +1351,8 @@ CLASS zcl_excel_worksheet IMPLEMENTATION.
|
|||
|
||||
" If the current cell contains the default date format,
|
||||
" convert the cell value to a date and calculate its length
|
||||
IF ls_stylemapping-complete_style-number_format-format_code =
|
||||
zcl_excel_style_number_format=>c_format_date_std.
|
||||
CASE ls_stylemapping-complete_style-number_format-format_code.
|
||||
WHEN zcl_excel_style_number_format=>c_format_date_std.
|
||||
|
||||
" Convert excel date to ABAP date
|
||||
ld_date =
|
||||
|
@ -1362,7 +1364,14 @@ CLASS zcl_excel_worksheet IMPLEMENTATION.
|
|||
" Remember the formatted date to calculate the cell size
|
||||
ld_cell_value = ld_date_char.
|
||||
|
||||
ENDIF.
|
||||
WHEN get_default_excel_time_format( ).
|
||||
|
||||
ld_time = zcl_excel_common=>excel_string_to_time( ld_cell_value ).
|
||||
WRITE ld_time TO ld_time_char.
|
||||
ld_cell_value = ld_time_char.
|
||||
|
||||
ENDCASE.
|
||||
|
||||
|
||||
" Read the font size and convert it to the font height
|
||||
" used by SAPscript (multiplication by 10)
|
||||
|
|
Loading…
Reference in New Issue
Block a user