如何使用C或C ++将Word转换为Html? [英] How Do I Convert Word To Html With C Or C++ ?

查看:89
本文介绍了如何使用C或C ++将Word转换为Html?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用C或C ++将Word转换为Html?

How Do I Convert Word To Html With C Or C++ ?

推荐答案

C ++标准库不提供此作业的功能。

但你可以使用API​​(外部库)来完成这项工作。

这些API可能是免费的。如果你的项目是商业性的,你可以花很多钱在这上面,你可以用一个公司这样做(一家有这种工作经验的公司)但写这种图书馆非常复杂。



但是如果你想开始自己写这个图书馆,这些是一些说明:







  • 你应该知道HTML语法(这是非常简单的部分)
  • 您应该知道Word文档语法(内部部分)(例如:Microsoft Word如何检测未着色的彩色文本?
C++ Standard Library does not provide functionality for this job.
But you can use an API(external library) to do this job.
The APIs maybe free or not.If your project is commercial and you can spend much money on this,you can communicate with a company to do this(a company which has experience in such jobs) but writing this kind of library is very complicated.

But if you want to start writing this library yourselves,these are some instructions:



  • You should know HTML syntax(This is very easy part)
  • You should know Word Documents syntax(the internal part)(e.g:How Microsoft Word detects colored text from uncolored one?


你写了一些代码。要阅读word文档,请参阅 https://www.google.com/search? q =阅读+字+文件+ c%2B%2B [ ^ ]。要编写HTML,您可以手动执行或使用其中一个帮助程序类。
You write some code. To read a word document see https://www.google.com/search?q=read+word+document+c%2B%2B[^]. To write HTML you can do it manually or use one of the helper classes.


这篇关于如何使用C或C ++将Word转换为Html?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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