Click here to Skip to main content
15,897,315 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a bunch of libre calc data files, all have two columns, a date and a value. I also have a libre calc template which acts as a calculator, and i would manually insert the data in to the template and save a file. I would do this over and over. Eventually I would go in to these calculator draw calculated data from them and insert them in to a comparison template.

This takes a lot of time!!

So I want to be able to write code to read choosen files, insert the data in to a template and save as a new libre calc file. Is this possible? How?
Posted
Comments
[no name] 30-Oct-15 15:06pm    
It is possible I think. Put some "PlaceHolder" in your template and fill them with current data.

1 solution

If by "libre" you mean LibreOffice, you can start with learning its API: http://api.libreoffice.org[^].

But what you do sounds line an absolute low-tech, a view of a user, not software development, who tends to think that programming is something like advanced user behavior. You may waste a lot less effort and obtain more reusable and useful results if you leave the idea of "automating" office and do all your calculations from scratch. However, I cannot be 100% sure, because I don't know all your goals. I would just advise your to think about it.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900