Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Automating office applications into an MFC dialog

Automating office applications into an MFC dialog

Scheduled Pinned Locked Moved C / C++ / MFC
c++comtutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lior Shoval
    wrote on last edited by
    #1

    Hi. I know it is possible to automate an office application into a dialog in VB. it's simple, MS included an activeX for it. But in C++/MFC it's different. I don't know which activeX to import (the one the vb uses) and the only documentation I found was how to automate office applications into SDI and MDI applications, but that's not good enough. I want to be able to create a dialog based application (or a new dialog in an already existing application - in my case) and embedd Word or Excel onto that document. Any ideas ? The perfect solution will be to use VB's activeX, but I don't know which is it.

    M M 2 Replies Last reply
    0
    • L Lior Shoval

      Hi. I know it is possible to automate an office application into a dialog in VB. it's simple, MS included an activeX for it. But in C++/MFC it's different. I don't know which activeX to import (the one the vb uses) and the only documentation I found was how to automate office applications into SDI and MDI applications, but that's not good enough. I want to be able to create a dialog based application (or a new dialog in an already existing application - in my case) and embedd Word or Excel onto that document. Any ideas ? The perfect solution will be to use VB's activeX, but I don't know which is it.

      M Offline
      M Offline
      Marc Richarme
      wrote on last edited by
      #2

      I'm not really into VB, but I guess that theres got to be a way to find out what activeX control it's using.. You should might try to create a dialog box in VB and open the dialog resource file (or which ever way VB stores that in) with a text editor and you might be luvky to find the GUID Just a shot in the dark =) Cheers, Marc

      1 Reply Last reply
      0
      • L Lior Shoval

        Hi. I know it is possible to automate an office application into a dialog in VB. it's simple, MS included an activeX for it. But in C++/MFC it's different. I don't know which activeX to import (the one the vb uses) and the only documentation I found was how to automate office applications into SDI and MDI applications, but that's not good enough. I want to be able to create a dialog based application (or a new dialog in an already existing application - in my case) and embedd Word or Excel onto that document. Any ideas ? The perfect solution will be to use VB's activeX, but I don't know which is it.

        M Offline
        M Offline
        Mazdak
        wrote on last edited by
        #3

        I think you have to use Automation.There are a lot of articles in MSDN about it.Serach "VC" + "Excel" in MSDN. :) Mazy "The more I search, the more my need For you, The more I bless, the more I bleed For you."The Outlaw Torn-Metallica

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups