Convert CSV to XLSX from console

I tried:

./soffice --headless --convert-to xlsx:“MS Excel 2007 XML” file.csv

And it does’t works. When i open file in Calc and save as XSLX it works fine.
How can I do it from console?

(testing with LO on Ubuntu 12.04.1)

Hi Anonymous,

When I tried to convert from CSV → XLSX using your parameters on the command line I got the error:

Error: Please reverify input parameters...

Per this question it looks like the correct name for the XLSX filter is

Calc MS Excel 2007 XML

So you’ll want to try something like

    ./soffice --headless --convert-to xlsx:"Calc MS Excel 2007 XML" file.csv