06-25-2013 5:40 PM
Hey guys,
i write a report which creates an excel sheet via XML string. For this purpose i use the api IF_IXML_DOCUMENT.
Now i want to add some texts to the XML which should be displayed in the created excel in one cell. The text should be formated with line feeds (in excel ALT+ENTER). How can i do this? The method which i use to write the string to XMLis:
IF_IXML_DOCUMENT->create_simple_element( )
How can i put line feed to the string, which can be interpreted as line feed in created excel? Any idea?
I tried to convert my string to a xstring and concatenate the strings with '0A'. Later i converted the concatenated xstring back to a string.
This is not working.
Other ideas?
regards,
M.
06-25-2013 5:50 PM
06-26-2013 9:12 AM
I saved an excel file as XML spreadsheet 2003 (*.xml) format and opened the resulting file in notepad.
For multi-line cell text:
one
two
three
The xml file in notepad shows:
<Cell ss:StyleID="s62"><Data ss:Type="String">one two three</Data></Cell>
So I think you need to send substring as Alt+Enter indicator. No need to convert to xstring format.
07-15-2015 6:02 AM
01-01-2016 2:07 PM
When you add character it doesnt work. XML converts '&' into '&'
I am also trying to find a solution but found nothing yet.
06-26-2013 11:57 AM
i find another way to do this. I placed each line in a seperate line.
thx to all.
ist not working 😞