mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-05 07:56:15 +08:00
parent
8938dba50f
commit
d104e020f3
|
@ -5236,11 +5236,9 @@ METHOD create_xl_sheet.
|
||||||
* End - Add - Issue #180
|
* End - Add - Issue #180
|
||||||
|
|
||||||
* Header/Footer Image
|
* Header/Footer Image
|
||||||
DATA: lo_drawing TYPE REF TO zcl_excel_drawing.
|
DATA: lt_drawings TYPE zexcel_t_drawings.
|
||||||
lo_iterator = me->excel->get_drawings_iterator( zcl_excel_drawing=>type_image ).
|
lt_drawings = io_worksheet->get_header_footer_drawings( ).
|
||||||
WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true.
|
IF lines( lt_drawings ) > 0. "Header or footer image exist
|
||||||
lo_drawing ?= lo_iterator->if_object_collection_iterator~get_next( ).
|
|
||||||
IF lo_drawing->get_type( ) = zcl_excel_drawing=>type_image_header_footer.
|
|
||||||
lo_element = lo_document->create_simple_element( name = lc_xml_node_drawing_for_hd_ft
|
lo_element = lo_document->create_simple_element( name = lc_xml_node_drawing_for_hd_ft
|
||||||
parent = lo_document ).
|
parent = lo_document ).
|
||||||
ADD 1 TO lv_relation_id. " +1 for legacyDrawings
|
ADD 1 TO lv_relation_id. " +1 for legacyDrawings
|
||||||
|
@ -5250,13 +5248,8 @@ METHOD create_xl_sheet.
|
||||||
lo_element->set_attribute( name = 'r:id'
|
lo_element->set_attribute( name = 'r:id'
|
||||||
value = lv_value ).
|
value = lv_value ).
|
||||||
lo_element_root->append_child( new_child = lo_element ).
|
lo_element_root->append_child( new_child = lo_element ).
|
||||||
|
|
||||||
ADD 1 TO lv_relation_id. " +1 for comments (not referenced in XL sheet but let's reserve the rId)
|
ADD 1 TO lv_relation_id. " +1 for comments (not referenced in XL sheet but let's reserve the rId)
|
||||||
EXIT.
|
|
||||||
ENDIF.
|
ENDIF.
|
||||||
ENDWHILE.
|
|
||||||
|
|
||||||
|
|
||||||
*
|
*
|
||||||
|
|
||||||
* tables
|
* tables
|
||||||
|
|
Loading…
Reference in New Issue
Block a user