none
Word 2010 Automation... RRS feed

  • Question

  • Hi everyone,

       How to automate MS word 2010 using VC++?

    Note:  Please do not post any sample or other links which is not related to Office 2010 !

    Regards,

    Ganesan.C


    Thanks & Regards, Ganesan Chandrasekaran.

    Tuesday, May 20, 2014 8:26 AM

Answers

  • Hi,

    >> How to automate MS word 2010 using VC++?

    There are three basic ways you can use Automation: MFC, #import, and C/C++:

    1. With MFC, use the Visual C++ ClassWizard to generate "wrapper classes" from the Microsoft Office type libraries.
    2. #import, a new directive that became available with Visual C++ 5.0, creates VC++ "smart pointers" from a specified type library.
    3. COM APIs to automate Word.

    Here is a sample project to automate Word using VC++:

    #C++ app automates Word (CppAutomateWord)

    http://code.msdn.microsoft.com/office/CppAutomateWord-28938be1#content

    Regards,

    Marvin


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Marvin_Guo Tuesday, May 27, 2014 1:28 AM
    Wednesday, May 21, 2014 10:02 AM