Libre Office Calc Read & Write

Just starting out? Need help? Post your questions and find answers here.
User avatar
a_carignan
User
User
Posts: 98
Joined: Sat Feb 21, 2009 2:01 am
Location: Canada

Libre Office Calc Read & Write

Post by a_carignan »

I would like to create a software that would allow me to read and write in a LibreOfficeCalc file. I would like a simple and functional example or at least an explanation of how to do it.
Thank you in advance.
:?:
User avatar
captain_skank
Enthusiast
Enthusiast
Posts: 639
Joined: Fri Oct 06, 2006 3:57 pm
Location: England

Re: Libre Office Calc Read & Write

Post by captain_skank »

I think collectordave did some work on this, but can't seem to find the topic at the moment - so you could try serching the forum for his work.

Of the top of my head though, Libreoffice ( & openoffice ) documents are effectively containers which can be opened with 7zip etc and contain xml files ( i think ) which can be quite easily decoded.

Hope this helps.

cheers
collectordave
Addict
Addict
Posts: 1310
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Libre Office Calc Read & Write

Post by collectordave »

Here is the link to the thread.http://www.purebasic.fr/english/viewtop ... 12&t=65415

Let me know if the link has stopped working.

regards

cd
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
Skiller
User
User
Posts: 12
Joined: Sun Oct 08, 2006 8:37 pm

Re: Libre Office Calc Read & Write

Post by Skiller »

Let me know if the link has stopped working
Hi, collectordave. Thx for your great work, but is it possible to give access to an alternative link? Instead of : https://www.dropbox.com/s/2jfh2o3kudu3d ... e.zip?dl=0 . Sorry, but I don't use dropbox.

If not, it's ok but ...

... would be great !!!
BarryG
Addict
Addict
Posts: 4138
Joined: Thu Apr 18, 2019 8:17 am

Re: Libre Office Calc Read & Write

Post by BarryG »

That link's real URL is -> https://www.dropbox.com/s/2jfh2o3kudu3d ... lcFile.zip

And it says the file was deleted.
User avatar
NicTheQuick
Addict
Addict
Posts: 1504
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: Libre Office Calc Read & Write

Post by NicTheQuick »

Every LibreOffice file is just a ZIP with an OpenDocument structure. The content itself is within an XML file inside of that ZIP.
You can take a look here: http://docs.oasis-open.org/office/v1.2/ ... _826425813
From there on you can find the tag <office:spreadsheet>, then <table:table> and from there the cells and rows. It's quite easy.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
Skiller
User
User
Posts: 12
Joined: Sun Oct 08, 2006 8:37 pm

Re: Libre Office Calc Read & Write

Post by Skiller »

Hi Nic,
Thx for the link. This seems quite a challenge. So, i guess i found a newer Sample from
collectordave here : http://www.mediafire.com/file/dszofwxlo ... e.zip/file
(Sat Oct 31, 2020 6:39 pm) I think, that will help me as a starterkit to use it with PB.
Thanks to collectordave!!! and thanks to you !!

Skiller
Post Reply