如何用C ++创建OpenOffice文档 [英] How can an OpenOffice document be created in C++

查看:135
本文介绍了如何用C ++创建OpenOffice文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
从C ++创建,打开和打印Word文件

我需要通过c ++程序创建一个word文档, 我在使用Windows 2008 Server时,这里的办公自动化有时会失败,并且由于自动化提供了交互式服务,我还需要非交互式服务来处理.

我可以通过什么方式创建openoffice/word文档?

您能建议我做上述操作的任何链接或教程吗?

PS-我了解了几种方法1.Openoffice SDK 2.OpenXML SDK

如果您已使用上述方法,请建议我使用以上哪种方法.

预先感谢

解决方案

这是一个新发布的C库,名为 libOPC ,其意图与Open XML SDK相同,但可用于所有Linux/Windows/Mac/etc.您可以在此处阅读: libOPC版本0.0.1已发布,并从 CodePlex 获取代码(请确保请查看文档页面中的演示视频.

Possible Duplicate:
Creating, opening and printing a word file from C++

Hi,

I need to create a word document from a c++ program, Im using windows 2008 server,office automation fails sometimes here and also I need non interactive service to handle as automation provides interactive service.I've implemented automation it fails sometimes

What are the ways I can create openoffice / word doc?

can you please suggest me any links or tutorials to do the above.

PS - I came to know about couple of methods 1.Openoffice SDK 2.OpenXML SDK

If you have worked with the above please suggest me which of the above to use.

Thanks in advance

解决方案

Here's a newly released C library called libOPC which has the same intent as the Open XML SDK, but can be used in all of Linux/Windows/Mac/etc. You can read about it here: libOPC version 0.0.1 released and get the code from CodePlex (be sure to check the documentation page for demo videos).

这篇关于如何用C ++创建OpenOffice文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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