<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 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                What is inside .lib file of Static library, Statically linked dynamic library and dynamically linked dynamic library?(静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么?)
                How do I load a C DLL from the SXS in Python?(如何从 Python 中的 SXS 加载 C DLL?)
                Can Cython code be compiled to a dll so C++ application can call it?(Cython 代码可以编译成 dll 以便 C++ 应用程序可以调用它吗?)
                Delay Loading DLLs(延迟加载 DLL)
                Throwing C++ exceptions across DLL boundaries(跨 DLL 边界抛出 C++ 异常)
                Loading a dll from a dll?(从 dll 加载 dll?)

                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>