mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-05 14:06:24 +08:00
Set_auto_size needs lo_worksheet->calculate_column_widths( ) to work
This commit is contained in:
parent
7fd9e3cbe0
commit
85dd442551
|
@ -61,6 +61,7 @@ START-OF-SELECTION.
|
|||
lo_column->set_auto_size( ip_auto_size = abap_true ).
|
||||
lo_column = lo_worksheet->get_column( 'C' ).
|
||||
lo_column->set_auto_size( ip_auto_size = abap_true ).
|
||||
lo_worksheet->calculate_column_widths( ).
|
||||
|
||||
" Add sheet
|
||||
lo_worksheet = lo_excel->add_new_worksheet( ).
|
||||
|
@ -97,6 +98,7 @@ START-OF-SELECTION.
|
|||
lo_column->set_auto_size( ip_auto_size = abap_true ).
|
||||
lo_column = lo_worksheet->get_column( 'C' ).
|
||||
lo_column->set_auto_size( ip_auto_size = abap_true ).
|
||||
lo_worksheet->calculate_column_widths( ).
|
||||
|
||||
" Add sheet
|
||||
lo_worksheet = lo_excel->add_new_worksheet( ).
|
||||
|
@ -133,6 +135,7 @@ START-OF-SELECTION.
|
|||
lo_column->set_auto_size( ip_auto_size = abap_true ).
|
||||
lo_column = lo_worksheet->get_column( 'C' ).
|
||||
lo_column->set_auto_size( ip_auto_size = abap_true ).
|
||||
lo_worksheet->calculate_column_widths( ).
|
||||
|
||||
" Add sheet for merged cells
|
||||
lo_worksheet = lo_excel->add_new_worksheet( ).
|
||||
|
|
Loading…
Reference in New Issue
Block a user