简体   繁体   English

用PHP将mysql数据导出到ODF

[英]exporting mysql data to ODF with php

I would like to know if someone triend exporting data from MySQL to an ODF format ? 我想知道是否有人通过MySQL将数据导出为ODF格式?

Any information / documentation would be very much appreciated. 任何信息/文件将不胜感激。

I am going to try to export a MySQL result set to ODF spreadsheet if possible. 如果可能,我将尝试将MySQL结果集导出到ODF电子表格。

You could try looking at this: http://www.phpclasses.org/browse/package/4398.html 您可以尝试查看以下内容: http : //www.phpclasses.org/browse/package/4398.html

However looking at the source code it doesn't look great and has lots of hard coded xml strings 但是,从源代码来看,它看起来并不好,并且具有许多硬编码的xml字符串

Another option to create OOo files with PHP is tbsOOo ; 用PHP创建OOo文件的另一种选择是tbsOOo however, it is mainly a templating engine. 但是,它主要是一个模板引擎。

This class allows to create OpenOffice documents dynamically by separating display formatting from logic and data. 此类允许通过将显示格式与逻辑和数据分开来动态创建OpenOffice文档。 In practice, you create a template using OpenOffice with the TinyButStrong tags. 实际上,您可以使用带有TinyButStrong标记的OpenOffice创建模板。 Then you create a PHP script that merges the template with a data source to get a new OpenOffice document. 然后,您创建一个PHP脚本,该脚本将模板与数据源合并以获取新的OpenOffice文档。

There is also: OpenDocument PHP which is more complex and can create the files dynamically. 还有: OpenDocument PHP ,它更复杂并且可以动态创建文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM