HOWTO: Create Automation Project Using MFC and a Type Library
在MSDN中找这篇文章

解决方案 »

  1.   

    谢了,但如何同时处理office97和office2000,他们的type library 不一样
      

  2.   

    在Registy中查一下版本号啦!
    不知可行否?
    用Remote Automation 管理器.
      

  3.   

    使用IWebBrowser2控件,可直接打开 *.doc、*.exl等文件
      

  4.   

    用97的type library 
    create时不要带版本号("Word.Appliction")
      

  5.   

    多谢,还有个问题,我在vc中自动控制word打印一篇文档,怎么知道打印完成了?
      

  6.   

    查一下有没关于document print end事件的connectionpoint,然后就Advise一个sink喽.--基本上就是vb的事件概念。