源代码:
CLASS zcl_excel_tool DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
*"* public components of class ZCL_EXCEL_TOOL
*"* do not include other source files here!!!
TYPE-POOLS ole2 .
TYPE-POOLS soi .
TYPES:
BEGIN OF ty_excel,
row TYPE c LENGTH 4096,
END OF ty_excel .
DATA rc TYPE soi_ret_string .
DATA doi_control TYPE REF TO i_oi_container_control .
DATA doi_container TYPE REF TO cl_gui_custom_container .
DATA doi_document TYPE REF TO i_oi_document_proxy .
DATA doi_spreadsheet TYPE REF TO i_oi_spreadsheet .
DATA doi_error TYPE REF TO i_oi_error .
DATA filename TYPE char1024 .
DATA ole_excel TYPE ole2_object .
DATA ole_books TYPE ole2_object .
DATA ole_book TYPE ole2_object .
DATA ole_sheet TYPE ole2_object .
CLASS-DATA c_para_id TYPE memoryid READ-ONLY VALUE 'ZEXCEL' ##NO_TEXT.
CLAS