on 2023 Nov 01 6:04 PM
I am making excel file to download by using abap2xlsx.
But I have an issue.
***what is page break preview?*********************************************************************************************
This is an example of "Page Break Preview". Because of the security policy, i post the link alternatively.
on the view tab, in the workbook views group, click page break preview.
And then you can see blue lines.
I want to set this the blue lines.
***what is page break preview?*********************************************************************************************
Can you help me? it s urgent.
below is the code which has problem:
DATA(ls_key) = VALUE wwwdatatab( relid = 'MI' objid = 'TEMPLATE' ).
CALL FUNCTION 'WWWDATA_IMPORT'
EXPORTING
key = ls_key
TABLES
mime = lt_mime
EXCEPTIONS
wrong_object_type = 1
import_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
RETURN.
ENDIF.
TRY.
lv_templ_xstr = cl_bcs_convert=>xtab_to_xstring( lt_mime ).
CATCH cx_bcs.
RETURN.
ENDTRY.
CREATE OBJECT lo_reader TYPE zcl_excel_reader_2007.
lo_excel = lo_reader->load( lv_templ_xstr ).
cl_writer = NEW zcl_excel_writer_2007( ).
DATA(lv_xstring) = cl_writer->write_file( lo_excel ).
cl_wd_runtime_services=>attach_file_to_response(
EXPORTING
i_filename = 'test'
i_content = lv_xstring
i_mime_type = lc_mim_type
).
Request clarification before answering.
User | Count |
---|---|
7 | |
4 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.