在C ++中阅读.docx [英] Reading .docx in C++

查看:180
本文介绍了在C ++中阅读.docx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图创建一个程序,读取.docx文件,并将其内容发布到博客/论坛供个人使用。我终于知道如何使用libcurl做的(我想)是程序的更难的部分。现在我只需要阅读.docx文件,但已经陷入了一个障碍。我似乎找不到任何文档如何做到这一点。任何想法?



感谢Much,
Michael

解决方案

最简单的方法是使用Word来做到这一点。它对许可有限制。



SO问题从C ++创建,打开和打印单词文件有一些很好的参考。



/ strong>



根据这些问题/答案可以解压缩Open XML文件并直接处理XML文件:





如果使用.NET,还有更多(C#)问题要阅读: p>


I'm trying to create a program that reads a .docx file and posts it content to a blog/forum for personal use. I finally have figured out how to use libcurl to do (what I figured) was the harder part of the program. Now I just have to read the .docx file, but have come under a snag. I can't seem to find any documentation on how to do this. Any ideas?

Thanks Much, Michael

解决方案

The easiest way is to use Word to do this. It has limitations on licensing.

The SO question Creating, opening and printing a word file from C++ has some good references.

Edit:

According to these questions/answers can unzip the Open XML file and process the XML file directly:

If you use .NET there are more (C#) questions to read:

这篇关于在C ++中阅读.docx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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