Date: prev next · Thread: first prev next last
2020 Archives by date, by thread · List index

Le 07/04/2020 à 11:18, a écrit :


e.g. this is the way to open files with custom input filter parameters:
soffice --infilter=CSV:44,34,UTF8 file.csv

what I need is a way to also specify column widths and enable line wrapping.

My suggestion would probably be to use a python script to get LO running
and waiting for a connection (using the URP connection port), then
formatting your column widths using the appropriate python-UNO objects
after the CSV has been loaded into a Calc sheet. That way, at least in
theory, you wouldn't have to intervene at all in the GUI. You should
also be able to save the file as an ODS.

Another alternative would be to do something similar using python to
load a Calc template containing the required formatting, and then copy
your CSV values (range of cells) into that loaded Calc document. Again,
all of this should be doable without having to intervene via the GUI.

I don't know how to write such a script, as I'm not familiar enough with
python to do so.


To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
Privacy Policy:


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.