re #44 improve previous fix for #44 and solve issue from https://cw.sdn.sap.com/cw/thread/15813?tstart=0. Cell value node should be created only in case there is non-zero length value string. This mimics Excel behavior which also omits this node for cells which have just style or formula.

git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@108 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
This commit is contained in:
Tomek Mackowski 2011-01-24 21:59:31 +00:00
parent 346a9ac6c6
commit be4d8fe6e7

View File

@ -2140,7 +2140,7 @@ endmethod.</source>
lv_value = &lt;ls_sheet_content&gt;-cell_formula.
lo_element_4-&gt;set_value( value = lv_value ).
lo_element_3-&gt;append_child( new_child = lo_element_4 ). &quot; fomula node
ELSE.
ELSEIF &lt;ls_sheet_content&gt;-cell_value IS NOT INITIAL. &quot;cell can have just style or formula
IF &lt;ls_sheet_content&gt;-data_type IS NOT INITIAL.
lo_element_3-&gt;set_attribute_ns( name = lc_xml_attr_t
value = &lt;ls_sheet_content&gt;-data_type ).