Leading/Trailing spaces are trimmed when exporting to Excel

jking

Member²
Marco,

Whenever I export the results to Excel, any records that have a leading/trailing spaces are trimmed.

Query:

Code:
select rpad(' ', level * 5) || 'Indent ' || (level * 5) example
  from dual
connect by level <= 5;

Results from Query:

Code:
EXAMPLE
     Indent 5
          Indent 10
               Indent 15
                    Indent 20
                         Indent 25

What it looks like in Excel:

Code:
EXAMPLE
Indent 5
Indent 10
Indent 15
Indent 20
Indent 25

Thanks.

 
It works correctly when exporting in XLS format, but XLSX format does indeed show this behavior. We'll fix it.
 
Back
Top