<bdo id='Bsg1N'></bdo><ul id='Bsg1N'></ul>

<small id='Bsg1N'></small><noframes id='Bsg1N'>

<tfoot id='Bsg1N'></tfoot>
    <i id='Bsg1N'><tr id='Bsg1N'><dt id='Bsg1N'><q id='Bsg1N'><span id='Bsg1N'><b id='Bsg1N'><form id='Bsg1N'><ins id='Bsg1N'></ins><ul id='Bsg1N'></ul><sub id='Bsg1N'></sub></form><legend id='Bsg1N'></legend><bdo id='Bsg1N'><pre id='Bsg1N'><center id='Bsg1N'></center></pre></bdo></b><th id='Bsg1N'></th></span></q></dt></tr></i><div id='Bsg1N'><tfoot id='Bsg1N'></tfoot><dl id='Bsg1N'><fieldset id='Bsg1N'></fieldset></dl></div>

    1. <legend id='Bsg1N'><style id='Bsg1N'><dir id='Bsg1N'><q id='Bsg1N'></q></dir></style></legend>
    2. 从 C++ 创建、打开和打印 word 文件

      Creating, opening and printing a word file from C++(从 C++ 创建、打开和打印 word 文件)
          <tbody id='DcSuK'></tbody>

        <small id='DcSuK'></small><noframes id='DcSuK'>

          • <bdo id='DcSuK'></bdo><ul id='DcSuK'></ul>
          • <i id='DcSuK'><tr id='DcSuK'><dt id='DcSuK'><q id='DcSuK'><span id='DcSuK'><b id='DcSuK'><form id='DcSuK'><ins id='DcSuK'></ins><ul id='DcSuK'></ul><sub id='DcSuK'></sub></form><legend id='DcSuK'></legend><bdo id='DcSuK'><pre id='DcSuK'><center id='DcSuK'></center></pre></bdo></b><th id='DcSuK'></th></span></q></dt></tr></i><div id='DcSuK'><tfoot id='DcSuK'></tfoot><dl id='DcSuK'><fieldset id='DcSuK'></fieldset></dl></div>

              <tfoot id='DcSuK'></tfoot>

                <legend id='DcSuK'><style id='DcSuK'><dir id='DcSuK'><q id='DcSuK'></q></dir></style></legend>

                本文介绍了从 C++ 创建、打开和打印 word 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我有三个相关的问题.

                我想用 C++ 中的名称创建一个 word 文件.我希望能够将打印命令发送到该文件,以便在用户不必打开文档并手动执行该文件的情况下打印该文件,并且我希望能够打开该文档.打开文档应该只是打开 word 然后打开文件.

                I want to create a word file with a name from C++. I want to be able to sent the printing command to this file, so that the file is being printed without the user having to open the document and do it manually and I want to be able to open the document. Opening the document should just open word which then opens the file.

                推荐答案

                您可以使用 Office 自动化来完成此任务.您可以在 http://support.microsoft.com/kb 上找到有关使用 C++ 实现办公自动化的常见问题解答/196776 和 http://support.microsoft.com/kb/238972.

                You can use Office Automation for this task. You can find answers to frequently asked questions about Office Automation with C++ at http://support.microsoft.com/kb/196776 and http://support.microsoft.com/kb/238972 .

                请记住,要使用 C++ 进行办公自动化,您需要了解如何使用 COM.

                Keep in mind that to do Office Automation with C++, you need to understand how to use COM.

                以下是如何在 word usign C++ 中执行各种任务的一些示例:

                Here are some examples of how to perform various tasks in word usign C++:

                • http://support.microsoft.com/kb/220911/en-us
                • http://support.microsoft.com/kb/238393/en-us
                • http://support.microsoft.com/kb/238611/en-us

                这些示例中的大部分都展示了如何使用 MFC 进行操作,但是使用 COM 操作 Word 的概念是相同的,即使您直接使用 ATL 或 COM.

                Most of these samples show how to do it using MFC, but the concepts of using COM to manipulate Word are the same, even if you use ATL or COM directly.

                这篇关于从 C++ 创建、打开和打印 word 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Unable to access non-const member functions of objects in C++ std::set(无法访问 C++ std::set 中对象的非常量成员函数)
                Constructing std::function argument from lambda(从 lambda 构造 std::function 参数)
                STL BigInt class implementation(STL BigInt 类实现)
                Sync is unreliable using std::atomic and std::condition_variable(使用 std::atomic 和 std::condition_variable 同步不可靠)
                Move list element to the end in STL(在 STL 中将列表元素移动到末尾)
                Why is overloading operatoramp;() prohibited for classes stored in STL containers?(为什么禁止对存储在 STL 容器中的类重载 operatoramp;()?)

                1. <i id='DkBs4'><tr id='DkBs4'><dt id='DkBs4'><q id='DkBs4'><span id='DkBs4'><b id='DkBs4'><form id='DkBs4'><ins id='DkBs4'></ins><ul id='DkBs4'></ul><sub id='DkBs4'></sub></form><legend id='DkBs4'></legend><bdo id='DkBs4'><pre id='DkBs4'><center id='DkBs4'></center></pre></bdo></b><th id='DkBs4'></th></span></q></dt></tr></i><div id='DkBs4'><tfoot id='DkBs4'></tfoot><dl id='DkBs4'><fieldset id='DkBs4'></fieldset></dl></div>

                  1. <legend id='DkBs4'><style id='DkBs4'><dir id='DkBs4'><q id='DkBs4'></q></dir></style></legend>

                        <tbody id='DkBs4'></tbody>

                      <small id='DkBs4'></small><noframes id='DkBs4'>

                      • <bdo id='DkBs4'></bdo><ul id='DkBs4'></ul>

                          <tfoot id='DkBs4'></tfoot>