mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-05 13:46:17 +08:00
700 support#562
This commit is contained in:
parent
42a85aaa18
commit
ec08afe506
|
@ -10,7 +10,8 @@ REPORT zdemo_excel_comments.
|
||||||
DATA: lo_excel TYPE REF TO zcl_excel,
|
DATA: lo_excel TYPE REF TO zcl_excel,
|
||||||
lo_worksheet TYPE REF TO zcl_excel_worksheet,
|
lo_worksheet TYPE REF TO zcl_excel_worksheet,
|
||||||
lo_comment TYPE REF TO zcl_excel_comment,
|
lo_comment TYPE REF TO zcl_excel_comment,
|
||||||
lo_hyperlink TYPE REF TO zcl_excel_hyperlink.
|
lo_hyperlink TYPE REF TO zcl_excel_hyperlink,
|
||||||
|
lv_comment TYPE string.
|
||||||
|
|
||||||
CONSTANTS: gc_save_file_name TYPE string VALUE 'Comments.xlsx'.
|
CONSTANTS: gc_save_file_name TYPE string VALUE 'Comments.xlsx'.
|
||||||
INCLUDE zdemo_excel_outputopt_incl.
|
INCLUDE zdemo_excel_outputopt_incl.
|
||||||
|
@ -37,8 +38,8 @@ START-OF-SELECTION.
|
||||||
lo_comment->set_text( ip_ref = 'C18' ip_text = 'Another comment' ).
|
lo_comment->set_text( ip_ref = 'C18' ip_text = 'Another comment' ).
|
||||||
lo_worksheet->add_comment( lo_comment ).
|
lo_worksheet->add_comment( lo_comment ).
|
||||||
lo_comment = lo_excel->add_new_comment( ).
|
lo_comment = lo_excel->add_new_comment( ).
|
||||||
lo_comment->set_text( ip_ref = 'F6' ip_text = |A comment split{ cl_abap_char_utilities=>cr_lf }on 2 lines?| ).
|
CONCATENATE 'A comment split' cl_abap_char_utilities=>cr_lf 'on 2 lines?' INTO lv_comment.
|
||||||
lo_worksheet->add_comment( lo_comment ).
|
lo_comment->set_text( ip_ref = 'F6' ip_text = lv_comment ).
|
||||||
|
|
||||||
" Second sheet
|
" Second sheet
|
||||||
lo_worksheet = lo_excel->add_new_worksheet( ).
|
lo_worksheet = lo_excel->add_new_worksheet( ).
|
||||||
|
|
Loading…
Reference in New Issue
Block a user