Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用 C/Visual C++ 操作 .docx 文档。我找到的任何示例都是 c# 示例。怎么做?
我发现微软希望您使用 .NET 或使用他们的 Office 自动化 API 来调用 Word 为您执行操作。根据您希望使用这些操作的程度,您可能能够使用 Office 自动化 API。如果没有,您可能不得不使用 .docx 文件格式背后的 Open Office XML 格式。
这是微软关于办公自动化的简短文档
这是一篇更深入的文章,尽管它可能已经过时了。
我只是认为 Office 自动化的一个大问题是你需要 Word 来处理它。当然,这一切都取决于您到底需要做什么。
试试http://libopc.codeplex.com/