mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-05 11:06:15 +08:00
Adjusted ZDEMO_EXCEL2 to test the fix of Issue #44.
git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@77 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
This commit is contained in:
parent
4a88b6a38a
commit
e7e0808ab1
|
@ -1,10 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-16"?>
|
||||
<PROG NAME="ZDEMO_EXCEL2" VARCL="X" SUBC="1" CNAM="FEMIA" CDAT="20100711" UNAM="FEMIA" UDAT="20100924" VERN="000022" RSTAT="T" RMAND="001" RLOAD="E" FIXPT="X" SDATE="20100924" STIME="153902" IDATE="20100924" ITIME="153902" UCCHECK="X">
|
||||
<PROG NAME="ZDEMO_EXCEL2" VARCL="X" SUBC="1" CNAM="FEMIA" CDAT="20100711" UNAM="BCUSER" UDAT="20101212" VERN="000024" RSTAT="T" RMAND="001" RLOAD="E" FIXPT="X" SDATE="20101212" STIME="065213" IDATE="20101212" ITIME="065213" UCCHECK="X">
|
||||
<textPool>
|
||||
<language SPRAS="E">
|
||||
<textElement ID="R" ENTRY="Test Styles for ABAP2XLSX" LENGTH="25 "/>
|
||||
</language>
|
||||
</textPool>
|
||||
<programDocumentation/>
|
||||
<source>*&---------------------------------------------------------------------*
|
||||
*& Report ZIFE_TEST_EXCEL
|
||||
*& Test Styles for ABAP2XLSX
|
||||
|
@ -120,11 +121,15 @@ START-OF-SELECTION.
|
|||
lo_worksheet->set_cell( ip_column = 'B' ip_row = 6 ip_value = 'Filled text' ip_style = lv_style_filled_guid ).
|
||||
" Change the style
|
||||
lo_worksheet->set_cell_style( ip_column = 'B' ip_row = 6 ip_style = lv_style_filled_green_guid ).
|
||||
" Add Style to an empty cell to test Fix for Issue
|
||||
"#44 Exception ZCX_EXCEL thrown when style is set for an empty cell
|
||||
" https://code.sdn.sap.com/spaces/abap2xlsx/tickets/44-exception-zcx_excel-thrown-when-style-is-set-for-an-empty-cell
|
||||
lo_worksheet->set_cell_style( ip_column = 'E' ip_row = 6 ip_style = lv_style_filled_green_guid ).
|
||||
|
||||
CREATE OBJECT lo_excel_writer TYPE zcl_excel_writer_2007.
|
||||
lv_file = lo_excel_writer->write_file( lo_excel ).
|
||||
|
||||
* Convert to binary
|
||||
" Convert to binary
|
||||
lt_file_tab = cl_bcs_convert=>xstring_to_solix( iv_xstring = lv_file ).
|
||||
lv_bytecount = XSTRLEN( lv_file ).
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user