A question of csv file

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
supernam
Posts: 8
Joined: Thu Jan 04, 2018 9:08 am

A question of csv file

Post by supernam »

Hi All,

I'm a java developer. I need to read the csv file in linux now.
Can I use the jopendocument API to read csv files? or save the csv file as an ods file.

Thanks in advance.
OpenOffice 1.4 on Linux
User avatar
Villeroy
Volunteer
Posts: 31269
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: A question of csv file

Post by Villeroy »

This is a user forum for OpenOffice. I'm not sure anybody here knows jopendocument.
Anyway, at least the API should allow you to read the delimited data into a nested array and then dump it into a sheet analog to https://wiki.openoffice.org/wiki/Docume ... Data_Array
If you are running a desktop Linux then you have an ODF suite intstalled, propably LibreOffice. Install its SDK and use its API. This forum is full of examples that apply to LIbreOffice and OpenOffice likewise.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply