mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-05 16:36:12 +08:00
Reading corrupted xlsx file (#663)
A cell contained text in the original template. It was lated deleted. But apparently a link to SharedStrings from the cell was not removed. An exception occurred after downloading and opening the file via ZCL_EXCELL_READER_2007 class. All operations until ZCL_EXCEL_READER_2007 were done using other tools.
This commit is contained in:
parent
0de59b65c7
commit
1c7e527a3b
|
@ -2455,8 +2455,10 @@ METHOD load_worksheet.
|
||||||
|
|
||||||
CASE ls_cell-t.
|
CASE ls_cell-t.
|
||||||
WHEN 's'. " String values are stored as index in shared string table
|
WHEN 's'. " String values are stored as index in shared string table
|
||||||
lv_index = lo_ixml_value_elem->get_value( ) + 1.
|
IF lo_ixml_value_elem IS BOUND.
|
||||||
READ TABLE shared_strings INTO lv_cell_value INDEX lv_index.
|
lv_index = lo_ixml_value_elem->get_value( ) + 1.
|
||||||
|
READ TABLE shared_strings INTO lv_cell_value INDEX lv_index.
|
||||||
|
ENDIF.
|
||||||
WHEN 'inlineStr'. " inlineStr values are kept in special node
|
WHEN 'inlineStr'. " inlineStr values are kept in special node
|
||||||
lo_ixml_value_elem = lo_ixml_cell_elem->find_from_name( name = 'is' ).
|
lo_ixml_value_elem = lo_ixml_cell_elem->find_from_name( name = 'is' ).
|
||||||
IF lo_ixml_value_elem IS BOUND.
|
IF lo_ixml_value_elem IS BOUND.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user