C ++问题。输入libre calc文件,数据文件和模板,导出新的calc文件? [英] C++ question. Input libre calc files, data files and a template, export new calc file?

查看:102
本文介绍了C ++问题。输入libre calc文件,数据文件和模板,导出新的calc文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一堆libre calc数据文件,都有两列,一个日期和一个值。我还有一个libre calc模板作为计算器,我会手动将数据插入模板并保存文件。我会一遍又一遍地这样做。最后我会进入这些计算器从中抽取计算数据并将它们插入到比较模板中。



这需要花费很多时间!!



所以我希望能够编写代码来读取选择的文件,将数据插入到模板中并保存为新的libre calc文件。这可能吗?如何?

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?

推荐答案

如果libre是指LibreOffice,你可以从学习它的API开始: http://api.libreoffice.org [ ^ ]。



但是你所做的听起来绝对是低技术,用户的观点,而不是软件开发,他倾向于认为编程类似于高级用户行为。如果您保留自动化办公室的想法并从头开始进行所有计算,那么您可能会浪费更少的精力并获得更多可重用且有用的结果。但是,我不能100%肯定,因为我不知道你的所有目标。我只是建议你考虑一下。



-SA
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


这篇关于C ++问题。输入libre calc文件,数据文件和模板,导出新的calc文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆