我需要使用C / Visual C ++来操作.docx文档。我找到的任何样品都是c#样品。 怎么做?
答案 0 :(得分:3)
我发现微软希望您使用.NET或使用他们的Office Automation API来调用Word来为您执行操作。根据您希望进行这些操作的程度,您可以使用Office Automation API。如果没有,您可能不得不使用.docx文件格式背后的Open Office XML格式。
Here's Microsoft's skimpy documentation on Office Automation
And here's an article that goes into it a bit more, although it may be out of date.
我只是认为Office Automation的一个大问题是你需要让Word来做任何事情。当然,这一切都取决于你到底需要做什么。
答案 1 :(得分:0)