Creating, opening and printing a word file from C++

后端 未结 6 1961
予麋鹿
予麋鹿 2020-11-29 10:26

I have three related questions.

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

6条回答
  •  我在风中等你
    2020-11-29 10:42

    You can use automation to open MS Word (in background or foreground) and then send the needed commands.

    A good starting place is the knowledge base article Office Automation Using Visual C++

    Some C source code is available in How To Use Visual C++ to Access DocumentProperties with Automation (the title says C++, but it is plain C)

提交回复
热议问题